var MA=Object.defineProperty,kA=Object.defineProperties;var AA=Object.getOwnPropertyDescriptors;var sd=Object.getOwnPropertySymbols;var g0=Object.prototype.hasOwnProperty,_0=Object.prototype.propertyIsEnumerable;var p0=(t,n,e)=>n in t?MA(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,V=(t,n)=>{for(var e in n||={})g0.call(n,e)&&p0(t,e,n[e]);if(sd)for(var e of sd(n))_0.call(n,e)&&p0(t,e,n[e]);return t},Ie=(t,n)=>kA(t,AA(n));var ld=(t,n)=>{var e={};for(var i in t)g0.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(t!=null&&sd)for(var i of sd(t))n.indexOf(i)<0&&_0.call(t,i)&&(e[i]=t[i]);return e};var Mh;function cd(){return Mh}function Ni(t){let n=Mh;return Mh=t,n}var b0=Symbol("NotFound");function ja(t){return t===b0||t?.name==="\u0275NotFound"}function hd(t,n){return Object.is(t,n)}var zt=null,dd=!1,kh=1,RA=null,vt=Symbol("SIGNAL");function ce(t){let n=zt;return zt=t,n}function pd(){return zt}var Ro={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Br(t){if(dd)throw new Error("");if(zt===null)return;zt.consumerOnSignalRead(t);let n=zt.producersTail;if(n!==void 0&&n.producer===t)return;let e,i=zt.recomputing;if(i&&(e=n!==void 0?n.nextProducer:zt.producers,e!==void 0&&e.producer===t)){zt.producersTail=e,e.lastReadVersion=t.version;return}let r=t.consumersTail;if(r!==void 0&&r.consumer===zt&&(!i||NA(r,zt)))return;let o=Ha(zt),a={producer:t,consumer:zt,nextProducer:e,prevConsumer:r,lastReadVersion:t.version,nextConsumer:void 0};zt.producersTail=a,n!==void 0?n.nextProducer=a:zt.producers=a,o&&y0(t,a)}function v0(){kh++}function gd(t){if(!(Ha(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===kh)){if(!t.producerMustRecompute(t)&&!No(t)){fd(t);return}t.producerRecomputeValue(t),fd(t)}}function Ah(t){if(t.consumers===void 0)return;let n=dd;dd=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||OA(i)}}finally{dd=n}}function Rh(){return zt?.consumerAllowSignalWrites!==!1}function OA(t){t.dirty=!0,Ah(t),t.consumerMarkedDirty?.(t)}function fd(t){t.dirty=!1,t.lastCleanEpoch=kh}function jr(t){return t&&(t.producersTail=void 0,t.recomputing=!0),ce(t)}function Oo(t,n){if(ce(n),!t)return;t.recomputing=!1;let e=t.producersTail,i=e!==void 0?e.nextProducer:t.producers;if(i!==void 0){if(Ha(t))do i=Oh(i);while(i!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function No(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,i=n.lastReadVersion;if(i!==e.version||(gd(e),i!==e.version))return!0}return!1}function Hr(t){if(Ha(t)){let n=t.producers;for(;n!==void 0;)n=Oh(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function y0(t,n){let e=t.consumersTail,i=Ha(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!i)for(let r=t.producers;r!==void 0;r=r.nextProducer)y0(r.producer,r)}function Oh(t){let n=t.producer,e=t.nextProducer,i=t.nextConsumer,r=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,i!==void 0?i.prevConsumer=r:n.consumersTail=r,r!==void 0)r.nextConsumer=i;else if(n.consumers=i,!Ha(n)){let o=n.producers;for(;o!==void 0;)o=Oh(o)}return e}function Ha(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function _d(t){RA?.(t)}function NA(t,n){let e=n.producersTail;if(e!==void 0){let i=n.producers;do{if(i===t)return!0;if(i===e)break;i=i.nextProducer}while(i!==void 0)}return!1}function gl(t,n){let e=Object.create(FA);e.computation=t,n!==void 0&&(e.equal=n);let i=()=>{if(gd(e),Br(e),e.value===pl)throw e.error;return e.value};return i[vt]=e,_d(e),i}var ud=Symbol("UNSET"),md=Symbol("COMPUTING"),pl=Symbol("ERRORED"),FA=Ie(V({},Ro),{value:ud,dirty:!0,error:null,equal:hd,kind:"computed",producerMustRecompute(t){return t.value===ud||t.value===md},producerRecomputeValue(t){if(t.value===md)throw new Error("");let n=t.value;t.value=md;let e=jr(t),i,r=!1;try{i=t.computation(),ce(null),r=n!==ud&&n!==pl&&i!==pl&&t.equal(n,i)}catch(o){i=pl,t.error=o}finally{Oo(t,e)}if(r){t.value=n;return}t.value=i,t.version++}});function PA(){throw new Error}var D0=PA;function C0(t){D0(t)}function Nh(t){D0=t}var LA=null;function Fh(t,n){let e=Object.create(_l);e.value=t,n!==void 0&&(e.equal=n);let i=()=>w0(e);return i[vt]=e,_d(e),[i,a=>Fo(e,a),a=>Ph(e,a)]}function w0(t){return Br(t),t.value}function Fo(t,n){Rh()||C0(t),t.equal(t.value,n)||(t.value=n,VA(t))}function Ph(t,n){Rh()||C0(t),Fo(t,n(t.value))}var _l=Ie(V({},Ro),{equal:hd,value:void 0,kind:"signal"});function VA(t){t.version++,v0(),Ah(t),LA?.(t)}function de(t){return typeof t=="function"}function bd(t){let e=t(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var vd=bd(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((i,r)=>`${r+1}) ${i.toString()}`).join(` `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Po(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var ge=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(de(i))try{i()}catch(o){n=o instanceof vd?o.errors:[o]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let o of r)try{E0(o)}catch(a){n=n??[],a instanceof vd?n=[...n,...a.errors]:n.push(a)}}if(n)throw new vd(n)}}add(n){var e;if(n&&n!==this)if(this.closed)E0(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Po(e,n)}remove(n){let{_finalizers:e}=this;e&&Po(e,n),n instanceof t&&n._removeParent(this)}};ge.EMPTY=(()=>{let t=new ge;return t.closed=!0,t})();var Lh=ge.EMPTY;function yd(t){return t instanceof ge||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function E0(t){de(t)?t():t.unsubscribe()}var si={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var za={setTimeout(t,n,...e){let{delegate:i}=za;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=za;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Dd(t){za.setTimeout(()=>{let{onUnhandledError:n}=si;if(n)n(t);else throw t})}function Lo(){}var x0=Vh("C",void 0,void 0);function I0(t){return Vh("E",void 0,t)}function T0(t){return Vh("N",t,void 0)}function Vh(t,n,e){return{kind:t,value:n,error:e}}var Vo=null;function Ua(t){if(si.useDeprecatedSynchronousErrorHandling){let n=!Vo;if(n&&(Vo={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:i}=Vo;if(Vo=null,e)throw i}}else t()}function S0(t){si.useDeprecatedSynchronousErrorHandling&&Vo&&(Vo.errorThrown=!0,Vo.error=t)}var Bo=class extends ge{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,yd(n)&&n.add(this)):this.destination=HA}static create(n,e,i){return new lr(n,e,i)}next(n){this.isStopped?jh(T0(n),this):this._next(n)}error(n){this.isStopped?jh(I0(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?jh(x0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},BA=Function.prototype.bind;function Bh(t,n){return BA.call(t,n)}var Hh=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){Cd(i)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){Cd(i)}else Cd(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){Cd(e)}}},lr=class extends Bo{constructor(n,e,i){super();let r;if(de(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&si.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&Bh(n.next,o),error:n.error&&Bh(n.error,o),complete:n.complete&&Bh(n.complete,o)}):r=n}this.destination=new Hh(r)}};function Cd(t){si.useDeprecatedSynchronousErrorHandling?S0(t):Dd(t)}function jA(t){throw t}function jh(t,n){let{onStoppedNotification:e}=si;e&&za.setTimeout(()=>e(t,n))}var HA={closed:!0,next:Lo,error:jA,complete:Lo};var $a=typeof Symbol=="function"&&Symbol.observable||"@@observable";function li(t){return t}function M0(t){return t.length===0?li:t.length===1?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}var te=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){let o=UA(e)?e:new lr(e,i,r);return Ua(()=>{let{operator:a,source:s}=this;o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return i=k0(i),new i((r,o)=>{let a=new lr({next:s=>{try{e(s)}catch(l){o(l),a.unsubscribe()}},error:o,complete:r});this.subscribe(a)})}_subscribe(e){var i;return(i=this.source)===null||i===void 0?void 0:i.subscribe(e)}[$a](){return this}pipe(...e){return M0(e)(this)}toPromise(e){return e=k0(e),new e((i,r)=>{let o;this.subscribe(a=>o=a,a=>r(a),()=>i(o))})}}return t.create=n=>new t(n),t})();function k0(t){var n;return(n=t??si.Promise)!==null&&n!==void 0?n:Promise}function zA(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}function UA(t){return t&&t instanceof Bo||zA(t)&&yd(t)}function zh(t){return de(t?.lift)}function we(t){return n=>{if(zh(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ce(t,n,e,i,r){return new Uh(t,n,e,i,r)}var Uh=class extends Bo{constructor(n,e,i,r,o,a){super(n),this.onFinalize=o,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(l){n.error(l)}}:super._next,this._error=r?function(s){try{r(s)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(s){n.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function A0(){return we((t,n)=>{let e=null;t._refCount++;let i=Ce(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}var bl=class extends te{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,zh(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new ge;let e=this.getSubject();n.add(this.source.subscribe(Ce(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=ge.EMPTY)}return n}refCount(){return A0()(this)}};var R0=bd(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=(()=>{class t extends te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let i=new wd(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new R0}next(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let i of this.currentObservers)i.next(e)}})}error(e){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:i,isStopped:r,observers:o}=this;return i||r?Lh:(this.currentObservers=null,o.push(e),new ge(()=>{this.currentObservers=null,Po(o,e)}))}_checkFinalizedStatuses(e){let{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){let e=new te;return e.source=this,e}}return t.create=(n,e)=>new wd(n,e),t})(),wd=class extends S{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,n)}error(n){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&i!==void 0?i:Lh}};var wn=class extends S{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}};var vl={now(){return(vl.delegate||Date).now()},delegate:void 0};var jo=class extends S{constructor(n=1/0,e=1/0,i=vl){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:i,_infiniteTimeWindow:r,_timestampProvider:o,_windowTime:a}=this;e||(i.push(n),!r&&i.push(o.now()+a)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:i,_buffer:r}=this,o=r.slice();for(let a=0;at.complete());function Td(t){return t&&de(t.schedule)}function $h(t){return t[t.length-1]}function Sd(t){return de($h(t))?t.pop():void 0}function Fi(t){return Td($h(t))?t.pop():void 0}function N0(t,n){return typeof $h(t)=="number"?t.pop():n}function P0(t,n,e,i){function r(o){return o instanceof e?o:new e(function(a){a(o)})}return new(e||(e=Promise))(function(o,a){function s(u){try{c(i.next(u))}catch(m){a(m)}}function l(u){try{c(i.throw(u))}catch(m){a(m)}}function c(u){u.done?o(u.value):r(u.value).then(s,l)}c((i=i.apply(t,n||[])).next())})}function F0(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function zo(t){return this instanceof zo?(this.v=t,this):new zo(t)}function L0(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=e.apply(t,n||[]),r,o=[];return r=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),r[Symbol.asyncIterator]=function(){return this},r;function a(f){return function(g){return Promise.resolve(g).then(f,m)}}function s(f,g){i[f]&&(r[f]=function(v){return new Promise(function(E,T){o.push([f,v,E,T])>1||l(f,v)})},g&&(r[f]=g(r[f])))}function l(f,g){try{c(i[f](g))}catch(v){h(o[0][3],v)}}function c(f){f.value instanceof zo?Promise.resolve(f.value.v).then(u,m):h(o[0][2],f)}function u(f){l("next",f)}function m(f){l("throw",f)}function h(f,g){f(g),o.shift(),o.length&&l(o[0][0],o[0][1])}}function V0(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof F0=="function"?F0(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(a){return new Promise(function(s,l){a=t[o](a),r(s,l,a.done,a.value)})}}function r(o,a,s,l){Promise.resolve(l).then(function(c){o({value:c,done:s})},a)}}var Wa=t=>t&&typeof t.length=="number"&&typeof t!="function";function Md(t){return de(t?.then)}function kd(t){return de(t[$a])}function Ad(t){return Symbol.asyncIterator&&de(t?.[Symbol.asyncIterator])}function Rd(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function $A(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Od=$A();function Nd(t){return de(t?.[Od])}function Fd(t){return L0(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:i,done:r}=yield zo(e.read());if(r)return yield zo(void 0);yield yield zo(i)}}finally{e.releaseLock()}})}function Pd(t){return de(t?.getReader)}function Ue(t){if(t instanceof te)return t;if(t!=null){if(kd(t))return GA(t);if(Wa(t))return WA(t);if(Md(t))return qA(t);if(Ad(t))return B0(t);if(Nd(t))return YA(t);if(Pd(t))return KA(t)}throw Rd(t)}function GA(t){return new te(n=>{let e=t[$a]();if(de(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function WA(t){return new te(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Dd)})}function YA(t){return new te(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function B0(t){return new te(n=>{QA(t,n).catch(e=>n.error(e))})}function KA(t){return B0(Fd(t))}function QA(t,n){var e,i,r,o;return P0(this,void 0,void 0,function*(){try{for(e=V0(t);i=yield e.next(),!i.done;){let a=i.value;if(n.next(a),n.closed)return}}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})}function mn(t,n,e,i=0,r=!1){let o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function Ld(t,n=0){return we((e,i)=>{e.subscribe(Ce(i,r=>mn(i,t,()=>i.next(r),n),()=>mn(i,t,()=>i.complete(),n),r=>mn(i,t,()=>i.error(r),n)))})}function Vd(t,n=0){return we((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function j0(t,n){return Ue(t).pipe(Vd(n),Ld(n))}function H0(t,n){return Ue(t).pipe(Vd(n),Ld(n))}function z0(t,n){return new te(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}function U0(t,n){return new te(e=>{let i;return mn(e,n,()=>{i=t[Od](),mn(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),()=>de(i?.return)&&i.return()})}function Bd(t,n){if(!t)throw new Error("Iterable cannot be null");return new te(e=>{mn(e,n,()=>{let i=t[Symbol.asyncIterator]();mn(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function $0(t,n){return Bd(Fd(t),n)}function G0(t,n){if(t!=null){if(kd(t))return j0(t,n);if(Wa(t))return z0(t,n);if(Md(t))return H0(t,n);if(Ad(t))return Bd(t,n);if(Nd(t))return U0(t,n);if(Pd(t))return $0(t,n)}throw Rd(t)}function Un(t,n){return n?G0(t,n):Ue(t)}function Te(...t){let n=Fi(t);return Un(t,n)}function zr(t){return!!t&&(t instanceof te||de(t.lift)&&de(t.subscribe))}function W0(t){return t instanceof Date&&!isNaN(t)}function _e(t,n){return we((e,i)=>{let r=0;e.subscribe(Ce(i,o=>{i.next(t.call(n,o,r++))}))})}var{isArray:ZA}=Array;function XA(t,n){return ZA(n)?t(...n):t(n)}function qa(t){return _e(n=>XA(t,n))}var{isArray:JA}=Array,{getPrototypeOf:eR,prototype:tR,keys:nR}=Object;function jd(t){if(t.length===1){let n=t[0];if(JA(n))return{args:n,keys:null};if(iR(n)){let e=nR(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}function iR(t){return t&&typeof t=="object"&&eR(t)===tR}function Hd(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function Ur(...t){let n=Fi(t),e=Sd(t),{args:i,keys:r}=jd(t);if(i.length===0)return Un([],n);let o=new te(rR(i,n,r?a=>Hd(r,a):li));return e?o.pipe(qa(e)):o}function rR(t,n,e=li){return i=>{q0(n,()=>{let{length:r}=t,o=new Array(r),a=r,s=r;for(let l=0;l{let c=Un(t[l],n),u=!1;c.subscribe(Ce(i,m=>{o[l]=m,u||(u=!0,s--),s||i.next(e(o.slice()))},()=>{--a||i.complete()}))},i)},i)}}function q0(t,n,e){t?mn(e,t,n):n()}function Y0(t,n,e,i,r,o,a,s){let l=[],c=0,u=0,m=!1,h=()=>{m&&!l.length&&!c&&n.complete()},f=v=>c{o&&n.next(v),c++;let E=!1;Ue(e(v,u++)).subscribe(Ce(n,T=>{r?.(T),o?f(T):n.next(T)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&cg(T)):g(T)}h()}catch(T){n.error(T)}}))};return t.subscribe(Ce(n,f,()=>{m=!0,h()})),()=>{s?.()}}function Pi(t,n,e=1/0){return de(n)?Pi((i,r)=>_e((o,a)=>n(i,o,r,a))(Ue(t(i,r))),e):(typeof n=="number"&&(e=n),we((i,r)=>Y0(i,r,t,e)))}function zd(t=1/0){return Pi(li,t)}function Dl(){return zd(1)}function ci(...t){return Dl()(Un(t,Fi(t)))}function dr(t){return new te(n=>{Ue(t()).subscribe(n)})}function Gh(...t){let n=Sd(t),{args:e,keys:i}=jd(t),r=new te(o=>{let{length:a}=e;if(!a){o.complete();return}let s=new Array(a),l=a,c=a;for(let u=0;u{m||(m=!0,c--),s[u]=h},()=>l--,void 0,()=>{(!l||!m)&&(c||o.next(i?Hd(i,s):s),o.complete())}))}});return n?r.pipe(qa(n)):r}var oR=["addListener","removeListener"],aR=["addEventListener","removeEventListener"],sR=["on","off"];function Uo(t,n,e,i){if(de(e)&&(i=e,e=void 0),i)return Uo(t,n,e).pipe(qa(i));let[r,o]=dR(t)?aR.map(a=>s=>t[a](n,s,e)):lR(t)?oR.map(K0(t,n)):cR(t)?sR.map(K0(t,n)):[];if(!r&&Wa(t))return Pi(a=>Uo(a,n,e))(Ue(t));if(!r)throw new TypeError("Invalid event target");return new te(a=>{let s=(...l)=>a.next(1o(s)})}function K0(t,n){return e=>i=>t[e](n,i)}function lR(t){return de(t.addListener)&&de(t.removeListener)}function cR(t){return de(t.on)&&de(t.off)}function dR(t){return de(t.addEventListener)&&de(t.removeEventListener)}function Ud(t=0,n,e=O0){let i=-1;return n!=null&&(Td(n)?e=n:i=n),new te(r=>{let o=W0(t)?+t-e.now():t;o<0&&(o=0);let a=0;return e.schedule(function(){r.closed||(r.next(a++),0<=i?this.schedule(void 0,i):r.complete())},o)})}function at(...t){let n=Fi(t),e=N0(t,1/0),i=t;return i.length?i.length===1?Ue(i[0]):zd(e)(Un(i,n)):cr}function ze(t,n){return we((e,i)=>{let r=0;e.subscribe(Ce(i,o=>t.call(n,o,r++)&&i.next(o)))})}function Q0(t){return we((n,e)=>{let i=!1,r=null,o=null,a=!1,s=()=>{if(o?.unsubscribe(),o=null,i){i=!1;let c=r;r=null,e.next(c)}a&&e.complete()},l=()=>{o=null,a&&e.complete()};n.subscribe(Ce(e,c=>{i=!0,r=c,o||Ue(t(c)).subscribe(o=Ce(e,s,l))},()=>{a=!0,(!i||!o||o.closed)&&e.complete()}))})}function $d(t,n=Ho){return Q0(()=>Ud(t,n))}function Z0(t,n,e,i,r){return(o,a)=>{let s=e,l=n,c=0;o.subscribe(Ce(a,u=>{let m=c++;l=s?t(l,u,m):(s=!0,u),i&&a.next(l)},r&&(()=>{s&&a.next(l),a.complete()})))}}function Gd(t,n){return we(Z0(t,n,arguments.length>=2,!1,!0))}function Ya(t,n){return de(n)?Pi(t,n,1):Pi(t,1)}function Li(t,n=Ho){return we((e,i)=>{let r=null,o=null,a=null,s=()=>{if(r){r.unsubscribe(),r=null;let c=o;o=null,i.next(c)}};function l(){let c=a+t,u=n.now();if(u{o=c,a=n.now(),r||(r=n.schedule(l,t),i.add(r))},()=>{s(),i.complete()},void 0,()=>{o=r=null}))})}function Ze(t){return t<=0?()=>cr:we((n,e)=>{let i=0;n.subscribe(Ce(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function X0(){return we((t,n)=>{t.subscribe(Ce(n,Lo))})}function J0(t){return _e(()=>t)}function Wh(t,n){return n?e=>ci(n.pipe(Ze(1),X0()),e.pipe(Wh(t))):Pi((e,i)=>Ue(t(e,i)).pipe(Ze(1),J0(e)))}function qh(t,n=Ho){let e=Ud(t,n);return Wh(()=>e)}function Ka(t,n=li){return t=t??uR,we((e,i)=>{let r,o=!0;e.subscribe(Ce(i,a=>{let s=n(a);(o||!t(r,s))&&(o=!1,r=s,i.next(a))}))})}function uR(t,n){return t===n}function Yh(t){return we((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Wd(){return we((t,n)=>{let e,i=!1;t.subscribe(Ce(n,r=>{let o=e;e=r,i&&n.next([o,r]),i=!0}))})}function eD(t={}){let{connector:n=()=>new S,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let a,s,l,c=0,u=!1,m=!1,h=()=>{s?.unsubscribe(),s=void 0},f=()=>{h(),a=l=void 0,u=m=!1},g=()=>{let v=a;f(),v?.unsubscribe()};return we((v,E)=>{c++,!m&&!u&&h();let T=l=l??n();E.add(()=>{c--,c===0&&!m&&!u&&(s=Kh(g,r))}),T.subscribe(E),!a&&c>0&&(a=new lr({next:ne=>T.next(ne),error:ne=>{m=!0,h(),s=Kh(f,e,ne),T.error(ne)},complete:()=>{u=!0,h(),s=Kh(f,i),T.complete()}}),Ue(v).subscribe(a))})(o)}}function Kh(t,n,...e){if(n===!0){t();return}if(n===!1)return;let i=new lr({next:()=>{i.unsubscribe(),t()}});return Ue(n(...e)).subscribe(i)}function qd(t,n,e){let i,r=!1;return t&&typeof t=="object"?{bufferSize:i=1/0,windowTime:n=1/0,refCount:r=!1,scheduler:e}=t:i=t??1/0,eD({connector:()=>new jo(i,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:r})}function Cl(t){return ze((n,e)=>t<=e)}function tt(...t){let n=Fi(t);return we((e,i)=>{(n?ci(t,e,n):ci(t,e)).subscribe(i)})}function At(t,n){return we((e,i)=>{let r=null,o=0,a=!1,s=()=>a&&!r&&i.complete();e.subscribe(Ce(i,l=>{r?.unsubscribe();let c=0,u=o++;Ue(t(l,u)).subscribe(r=Ce(i,m=>i.next(n?n(l,m,u,c++):m),()=>{r=null,s()}))},()=>{a=!0,s()}))})}function Se(t){return we((n,e)=>{Ue(t).subscribe(Ce(e,()=>e.complete(),Lo)),!e.closed&&n.subscribe(e)})}function Qh(t,n=!1){return we((e,i)=>{let r=0;e.subscribe(Ce(i,o=>{let a=t(o,r++);(a||n)&&i.next(o),!a&&i.complete()}))})}function Vi(t,n,e){let i=de(t)||n||e?{next:t,error:n,complete:e}:t;return i?we((r,o)=>{var a;(a=i.subscribe)===null||a===void 0||a.call(i);let s=!0;r.subscribe(Ce(o,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),o.next(l)},()=>{var l;s=!1,(l=i.complete)===null||l===void 0||l.call(i),o.complete()},l=>{var c;s=!1,(c=i.error)===null||c===void 0||c.call(i,l),o.error(l)},()=>{var l,c;s&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):li}function tD(t){let n=ce(null);try{return t()}finally{ce(n)}}var nD=Ie(V({},Ro),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});function iD(t){if(t.dirty=!1,t.hasRun&&!No(t))return;t.hasRun=!0;let n=jr(t);try{t.cleanup(),t.fn()}finally{Oo(t,n)}}var Xd="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",x=class extends Error{code;constructor(n,e){super(Bi(n,e)),this.code=n}};function mR(t){return`NG0${Math.abs(t)}`}function Bi(t,n){return`${mR(t)}${n?": "+n:""}`}var $n=globalThis;function Ge(t){for(let n in t)if(t[n]===Ge)return n;throw Error("")}function aD(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function $r(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map($r).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` `);return i>=0?e.slice(0,i):e}function Jd(t,n){return t?n?`${t} ${n}`:t:n||""}var fR=Ge({__forward_ref__:Ge});function lt(t){return t.__forward_ref__=lt,t.toString=function(){return $r(this())},t}function It(t){return lp(t)?t():t}function lp(t){return typeof t=="function"&&t.hasOwnProperty(fR)&&t.__forward_ref__===lt}function sD(t,n){t==null&&cp(n,t,null,"!=")}function cp(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(i==null?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function $(t){return{providers:t.providers||[],imports:t.imports||[]}}function eu(t){return hR(t,tu)}function hR(t,n){return t.hasOwnProperty(n)&&t[n]||null}function pR(t){let n=t?.[tu]??null;return n||null}function Xh(t){return t&&t.hasOwnProperty(Kd)?t[Kd]:null}var tu=Ge({\u0275prov:Ge}),Kd=Ge({\u0275inj:Ge}),D=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=w({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dp(t){return t&&!!t.\u0275providers}var up=Ge({\u0275cmp:Ge}),mp=Ge({\u0275dir:Ge}),fp=Ge({\u0275pipe:Ge});var xl=Ge({\u0275fac:Ge}),Ko=Ge({__NG_ELEMENT_ID__:Ge}),rD=Ge({__NG_ENV_ID__:Ge});function mr(t){return typeof t=="string"?t:t==null?"":String(t)}function Qd(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():mr(t)}var hp=Ge({ngErrorCode:Ge}),lD=Ge({ngErrorMessage:Ge}),El=Ge({ngTokenPath:Ge});function pp(t,n){return cD("",-200,n)}function nu(t,n){throw new x(-201,!1)}function gR(t,n){t[El]??=[];let e=t[El],i;typeof n=="object"&&"multi"in n&&n?.multi===!0?(sD(n.provide,"Token with multi: true should have a provide property"),i=Qd(n.provide)):i=Qd(n),e[0]!==i&&t[El].unshift(i)}function _R(t,n){let e=t[El],i=t[hp],r=t[lD]||t.message;return t.message=vR(r,i,e,n),t}function cD(t,n,e){let i=new x(n,t);return i[hp]=n,i[lD]=t,e&&(i[El]=e),i}function bR(t){return t[hp]}function vR(t,n,e=[],i=null){let r="";e&&e.length>1&&(r=` Path: ${e.join(" -> ")}.`);let o=i?` Source: ${i}.`:"";return Bi(n,`${t}${o}${r}`)}var Jh;function dD(){return Jh}function En(t){let n=Jh;return Jh=t,n}function gp(t,n,e){let i=eu(t);if(i&&i.providedIn=="root")return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(n!==void 0)return n;nu(t,"Injector")}var yR={},$o=yR,ep="__NG_DI_FLAG__",tp=class{injector;constructor(n){this.injector=n}retrieve(n,e){let i=Go(e)||0;try{return this.injector.get(n,i&8?null:$o,i)}catch(r){if(ja(r))return r;throw r}}};function DR(t,n=0){let e=cd();if(e===void 0)throw new x(-203,!1);if(e===null)return gp(t,void 0,n);{let i=CR(n),r=e.retrieve(t,i);if(ja(r)){if(i.optional)return null;throw r}return r}}function X(t,n=0){return(dD()||DR)(It(t),n)}function d(t,n){return X(t,Go(n))}function Go(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function CR(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function np(t){let n=[];for(let e=0;eArray.isArray(e)?iu(e,n):n(e))}function bp(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Sl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function fD(t,n){let e=[];for(let i=0;in;){let o=r-2;t[r]=t[o],r--}t[n]=e,t[n+1]=i}}function ru(t,n,e){let i=Za(t,n);return i>=0?t[i|1]=e:(i=~i,hD(t,i,n,e)),i}function ou(t,n){let e=Za(t,n);if(e>=0)return t[e|1]}function Za(t,n){return ER(t,n,1)}function ER(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){let o=i+(r-i>>1),a=t[o<n?r=o:i=o+1}return~(r<{e.push(a)};return iu(n,a=>{let s=a;Zd(s,o,[],i)&&(r||=[],r.push(s))}),r!==void 0&&gD(r,o),e}function gD(t,n){for(let e=0;e{n(o,i)})}}function Zd(t,n,e,i){if(t=It(t),!t)return!1;let r=null,o=Xh(t),a=!o&&fr(t);if(!o&&!a){let l=t.ngModule;if(o=Xh(l),o)r=l;else return!1}else{if(a&&!a.standalone)return!1;r=t}let s=i.has(r);if(a){if(s)return!1;if(i.add(r),a.dependencies){let l=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let c of l)Zd(c,n,e,i)}}else if(o){if(o.imports!=null&&!s){i.add(r);let c;try{iu(o.imports,u=>{Zd(u,n,e,i)&&(c||=[],c.push(u))})}finally{}c!==void 0&&gD(c,n)}if(!s){let c=Wo(r)||(()=>new r);n({provide:r,useFactory:c,deps:Ut},r),n({provide:yp,useValue:r,multi:!0},r),n({provide:ji,useValue:()=>X(r),multi:!0},r)}let l=o.providers;if(l!=null&&!s){let c=t;Cp(l,u=>{n(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function Cp(t,n){for(let e of t)dp(e)&&(e=e.\u0275providers),Array.isArray(e)?Cp(e,n):n(e)}var xR=Ge({provide:String,useValue:Ge});function _D(t){return t!==null&&typeof t=="object"&&xR in t}function IR(t){return!!(t&&t.useExisting)}function TR(t){return!!(t&&t.useFactory)}function qo(t){return typeof t=="function"}function bD(t){return!!t.useClass}var kl=new D(""),Yd={},oD={},Zh;function Xa(){return Zh===void 0&&(Zh=new Il),Zh}var st=class{},Yo=class extends st{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,rp(n,a=>this.processProvider(a)),this.records.set(vp,Qa(void 0,this)),r.has("environment")&&this.records.set(st,Qa(void 0,this));let o=this.records.get(kl);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(yp,Ut,{self:!0}))}retrieve(n,e){let i=Go(e)||0;try{return this.get(n,$o,i)}catch(r){if(ja(r))return r;throw r}}destroy(){wl(this),this._destroyed=!0;let n=ce(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ce(n)}}onDestroy(n){return wl(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){wl(this);let e=Ni(this),i=En(void 0),r;try{return n()}finally{Ni(e),En(i)}}get(n,e=$o,i){if(wl(this),n.hasOwnProperty(rD))return n[rD](this);let r=Go(i),o,a=Ni(this),s=En(void 0);try{if(!(r&4)){let c=this.records.get(n);if(c===void 0){let u=RR(n)&&eu(n);u&&this.injectableDefInScope(u)?c=Qa(ip(n),Yd):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c,r)}let l=r&2?Xa():this.parent;return e=r&8&&e===$o?null:e,l.get(n,e)}catch(l){let c=bR(l);throw c===-200||c===-201?new x(c,null):l}finally{En(s),Ni(a)}}resolveInjectorInitializers(){let n=ce(null),e=Ni(this),i=En(void 0),r;try{let o=this.get(ji,Ut,{self:!0});for(let a of o)a()}finally{Ni(e),En(i),ce(n)}}toString(){let n=[],e=this.records;for(let i of e.keys())n.push($r(i));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=It(n);let e=qo(n)?n:It(n&&n.provide),i=MR(n);if(!qo(n)&&n.multi===!0){let r=this.records.get(e);r||(r=Qa(void 0,Yd,!0),r.factory=()=>np(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e,i){let r=ce(null);try{if(e.value===oD)throw pp($r(n));return e.value===Yd&&(e.value=oD,e.value=e.factory(void 0,i)),typeof e.value=="object"&&e.value&&AR(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{ce(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=It(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function ip(t){let n=eu(t),e=n!==null?n.factory:Wo(t);if(e!==null)return e;if(t instanceof D)throw new x(204,!1);if(t instanceof Function)return SR(t);throw new x(204,!1)}function SR(t){if(t.length>0)throw new x(204,!1);let e=pR(t);return e!==null?()=>e.factory(t):()=>new t}function MR(t){if(_D(t))return Qa(void 0,t.useValue);{let n=wp(t);return Qa(n,Yd)}}function wp(t,n,e){let i;if(qo(t)){let r=It(t);return Wo(r)||ip(r)}else if(_D(t))i=()=>It(t.useValue);else if(TR(t))i=()=>t.useFactory(...np(t.deps||[]));else if(IR(t))i=(r,o)=>X(It(t.useExisting),o!==void 0&&o&8?8:void 0);else{let r=It(t&&(t.useClass||t.provide));if(kR(t))i=()=>new r(...np(t.deps));else return Wo(r)||ip(r)}return i}function wl(t){if(t.destroyed)throw new x(205,!1)}function Qa(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function kR(t){return!!t.deps}function AR(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function RR(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function rp(t,n){for(let e of t)Array.isArray(e)?rp(e,n):e&&dp(e)?rp(e.\u0275providers,n):n(e)}function Ja(t,n){let e;t instanceof Yo?(wl(t),e=t):e=new tp(t);let i,r=Ni(e),o=En(void 0);try{return n()}finally{Ni(r),En(o)}}function vD(){return dD()!==void 0||cd()!=null}var tn=0,J=1,ue=2,mt=3,Gn=4,nn=5,rn=6,es=7,ft=8,ui=9,Hi=10,Ne=11,ts=12,Ep=13,Qo=14,Pt=15,qr=16,Zo=17,zi=18,Al=19,xp=20,ur=21,su=22,hr=23,In=24,Xo=25,Le=26,yD=1,mi=6,Ui=7,Rl=8,Jo=9,Tt=10;function Tn(t){return Array.isArray(t)&&typeof t[yD]=="object"}function Sn(t){return Array.isArray(t)&&t[yD]===!0}function Ip(t){return(t.flags&4)!==0}function $i(t){return t.componentOffset>-1}function ns(t){return(t.flags&1)===1}function fi(t){return!!t.template}function ea(t){return(t[ue]&512)!==0}function Yr(t){return(t[ue]&256)===256}var Tp="svg",DD="math";function Mn(t){for(;Array.isArray(t);)t=t[tn];return t}function Sp(t,n){return Mn(n[t])}function kn(t,n){return Mn(n[t.index])}function ta(t,n){return t.data[n]}function CD(t,n){return t[n]}function Wn(t,n){let e=n[t];return Tn(e)?e:e[tn]}function wD(t){return(t[ue]&4)===4}function lu(t){return(t[ue]&128)===128}function ED(t){return Sn(t[mt])}function An(t,n){return n==null?null:t[n]}function Mp(t){t[Zo]=0}function cu(t){t[ue]&1024||(t[ue]|=1024,lu(t)&&Kr(t))}function xD(t,n){for(;t>0;)n=n[Qo],t--;return n}function is(t){return!!(t[ue]&9216||t[In]?.dirty)}function du(t){t[Hi].changeDetectionScheduler?.notify(8),t[ue]&64&&(t[ue]|=1024),is(t)&&Kr(t)}function Kr(t){t[Hi].changeDetectionScheduler?.notify(0);let n=Gr(t);for(;n!==null&&!(n[ue]&8192||(n[ue]|=8192,!lu(n)));)n=Gr(n)}function kp(t,n){if(Yr(t))throw new x(911,!1);t[ur]===null&&(t[ur]=[]),t[ur].push(n)}function ID(t,n){if(t[ur]===null)return;let e=t[ur].indexOf(n);e!==-1&&t[ur].splice(e,1)}function Gr(t){let n=t[mt];return Sn(n)?n[mt]:n}function Ap(t){return t[es]??=[]}function Rp(t){return t.cleanup??=[]}function TD(t,n,e,i){let r=Ap(n);r.push(e),t.firstCreatePass&&Rp(t).push(i,r.length-1)}var be={lFrame:jD(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Ol=(function(t){return t[t.Off=0]="Off",t[t.Exhaustive=1]="Exhaustive",t[t.OnlyDirtyViews=2]="OnlyDirtyViews",t})(Ol||{}),OR=0,op=!1;function SD(){return be.lFrame.elementDepthCount}function MD(){be.lFrame.elementDepthCount++}function Op(){be.lFrame.elementDepthCount--}function uu(){return be.bindingsEnabled}function mu(){return be.skipHydrationRootTNode!==null}function Np(t){return be.skipHydrationRootTNode===t}function kD(t){be.skipHydrationRootTNode=t}function Fp(){be.skipHydrationRootTNode=null}function se(){return be.lFrame.lView}function nt(){return be.lFrame.tView}function M(t){return be.lFrame.contextLView=t,t[ft]}function k(t){return be.lFrame.contextLView=null,t}function St(){let t=Pp();for(;t!==null&&t.type===64;)t=t.parent;return t}function Pp(){return be.lFrame.currentTNode}function AD(){let t=be.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function rs(t,n){let e=be.lFrame;e.currentTNode=t,e.isParent=n}function Lp(){return be.lFrame.isParent}function Vp(){be.lFrame.isParent=!1}function RD(){return be.lFrame.contextLView}function Bp(t){cp("Must never be called in production mode"),OR=t}function jp(){return op}function os(t){let n=op;return op=t,n}function Hp(){let t=be.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function OD(){return be.lFrame.bindingIndex}function ND(t){return be.lFrame.bindingIndex=t}function Gi(){return be.lFrame.bindingIndex++}function fu(t){let n=be.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function FD(){return be.lFrame.inI18n}function PD(t,n){let e=be.lFrame;e.bindingIndex=e.bindingRootIndex=t,hu(n)}function LD(){return be.lFrame.currentDirectiveIndex}function hu(t){be.lFrame.currentDirectiveIndex=t}function VD(t){let n=be.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function pu(){return be.lFrame.currentQueryIndex}function Nl(t){be.lFrame.currentQueryIndex=t}function NR(t){let n=t[J];return n.type===2?n.declTNode:n.type===1?t[nn]:null}function zp(t,n,e){if(e&4){let r=n,o=t;for(;r=r.parent,r===null&&!(e&1);)if(r=NR(o),r===null||(o=o[Qo],r.type&10))break;if(r===null)return!1;n=r,t=o}let i=be.lFrame=BD();return i.currentTNode=n,i.lView=t,!0}function gu(t){let n=BD(),e=t[J];be.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function BD(){let t=be.lFrame,n=t===null?null:t.child;return n===null?jD(t):n}function jD(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function HD(){let t=be.lFrame;return be.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Up=HD;function _u(){let t=HD();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function zD(t){return(be.lFrame.contextLView=xD(t,be.lFrame.contextLView))[ft]}function Wi(){return be.lFrame.selectedIndex}function Qr(t){be.lFrame.selectedIndex=t}function as(){let t=be.lFrame;return ta(t.tView,t.selectedIndex)}function Rn(){be.lFrame.currentNamespace=Tp}function na(){FR()}function FR(){be.lFrame.currentNamespace=null}function $p(){return be.lFrame.currentNamespace}var UD=!0;function bu(){return UD}function pr(t){UD=t}var PR={elements:void 0};function vu(){return PR}function ap(t,n=null,e=null,i){let r=$D(t,n,e,i);return r.resolveInjectorInitializers(),r}function $D(t,n=null,e=null,i,r=new Set){let o=[e||Ut,pD(t)];return i=i||(typeof t=="object"?void 0:$r(t)),new Yo(o,n||Xa(),i||null,r)}var U=class t{static THROW_IF_NOT_FOUND=$o;static NULL=new Il;static create(n,e){if(Array.isArray(n))return ap({name:""},e,n,"");{let i=n.name??"";return ap({name:i},n.parent,n.providers,i)}}static \u0275prov=w({token:t,providedIn:"any",factory:()=>X(vp)});static __NG_ELEMENT_ID__=-1},me=new D(""),On=(()=>{class t{static __NG_ELEMENT_ID__=LR;static __NG_ENV_ID__=e=>e}return t})(),Tl=class extends On{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Yr(this._lView)}onDestroy(n){let e=this._lView;return kp(e,n),()=>ID(e,n)}};function LR(){return new Tl(se())}var xn=class{_console=console;handleError(n){this._console.error("ERROR",n)}},qi=new D("",{providedIn:"root",factory:()=>{let t=d(st),n;return e=>{t.destroyed&&!n?setTimeout(()=>{throw e}):(n??=t.get(xn),n.handleError(e))}}}),GD={provide:ji,useValue:()=>void d(xn),multi:!0};function Yi(t){return typeof t=="function"&&t[vt]!==void 0}function Me(t,n){let[e,i,r]=Fh(t,n?.equal),o=e,a=o[vt];return o.set=i,o.update=r,o.asReadonly=yu.bind(o),o}function yu(){let t=this[vt];if(t.readonlyFn===void 0){let n=()=>this();n[vt]=t,t.readonlyFn=n}return t.readonlyFn}function Gp(t){return Yi(t)&&typeof t.set=="function"}var en=class{},ss=new D("",{providedIn:"root",factory:()=>!1});var Wp=new D(""),Du=new D("");var ia=(()=>{class t{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=VR}return t})();function VR(){return new ia(se(),St())}var gr=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new wn(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new te(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=w({token:t,providedIn:"root",factory:()=>new t})}return t})(),ls=(()=>{class t{internalPendingTasks=d(gr);scheduler=d(en);errorHandler=d(qi);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();e().catch(this.errorHandler).finally(i)}static \u0275prov=w({token:t,providedIn:"root",factory:()=>new t})}return t})();function ra(...t){}var Fl=(()=>{class t{static \u0275prov=w({token:t,providedIn:"root",factory:()=>new sp})}return t})(),sp=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,i=this.queues.get(e);i.has(n)&&(i.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(n)||i.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,i]of this.queues)e===null?n||=this.flushQueue(i):n||=e.run(()=>this.flushQueue(i));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let i of n)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};var Cu={JSACTION:"jsaction"};function bs(t){return{toString:t}.toString()}var wu="__parameters__";function qR(t){return function(...e){if(t){let i=t(...e);for(let r in i)this[r]=i[r]}}}function LC(t,n,e){return bs(()=>{let i=qR(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;let a=new r(...o);return s.annotation=a,s;function s(l,c,u){let m=l.hasOwnProperty(wu)?l[wu]:Object.defineProperty(l,wu,{value:[]})[wu];for(;m.length<=u;)m.push(null);return(m[u]=m[u]||[]).push(a),l}}return r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var ql=_p(LC("Optional"),8);var Qg=_p(LC("SkipSelf"),4);function YR(t){return typeof t=="function"}var Nu=class{previousValue;currentValue;firstChange;constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function VC(t,n,e,i){n!==null?n.applyValueToInputSignal(n,i):t[e]=i}var Be=(()=>{let t=()=>BC;return t.ngInherit=!0,t})();function BC(t){return t.type.prototype.ngOnChanges&&(t.setInput=QR),KR}function KR(){let t=HC(this),n=t?.current;if(n){let e=t.previous;if(e===di)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function QR(t,n,e,i,r){let o=this.declaredInputs[i],a=HC(t)||ZR(t,{previous:di,current:null}),s=a.current||(a.current={}),l=a.previous,c=l[o];s[o]=new Nu(c&&c.currentValue,e,l===di),VC(t,n,r,e)}var jC="__ngSimpleChanges__";function HC(t){return t[jC]||null}function ZR(t,n){return t[jC]=n}var WD=[];var Ve=function(t,n=null,e){for(let i=0;i=i)break}else n[l]<0&&(t[Zo]+=65536),(s>14>16&&(t[ue]&3)===n&&(t[ue]+=16384,qD(s,o)):qD(s,o)}var ds=-1,la=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,i,r){this.factory=n,this.name=r,this.canSeeViewProviders=e,this.injectImpl=i}};function eO(t){return(t.flags&8)!==0}function tO(t){return(t.flags&16)!==0}function nO(t,n,e){let i=0;for(;in){a=o-1;break}}}for(;o>16}function Pu(t,n){let e=rO(t),i=n;for(;e>0;)i=i[Qo],e--;return i}var cg=!0;function KD(t){let n=cg;return cg=t,n}var oO=256,WC=oO-1,qC=5,aO=0,Ki={};function sO(t,n,e){let i;typeof e=="string"?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ko)&&(i=e[Ko]),i==null&&(i=e[Ko]=aO++);let r=i&WC,o=1<>qC)]|=o}function Lu(t,n){let e=YC(t,n);if(e!==-1)return e;let i=n[J];i.firstCreatePass&&(t.injectorIndex=n.length,Yp(i.data,t),Yp(n,null),Yp(i.blueprint,null));let r=Zg(t,n),o=t.injectorIndex;if(GC(r)){let a=Fu(r),s=Pu(r,n),l=s[J].data;for(let c=0;c<8;c++)n[o+c]=s[a+c]|l[a+c]}return n[o+8]=r,o}function Yp(t,n){t.push(0,0,0,0,0,0,0,0,n)}function YC(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function Zg(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;r!==null;){if(i=JC(r),i===null)return ds;if(e++,r=r[Qo],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return ds}function dg(t,n,e){sO(t,n,e)}function lO(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let i=e.length,r=0;for(;r>20,m=i?s:s+u,h=r?s+u:c;for(let f=m;f=l&&g.type===e)return f}if(r){let f=a[l];if(f&&fi(f)&&f.type===e)return l}return null}function Vl(t,n,e,i,r){let o=t[e],a=n.data;if(o instanceof la){let s=o;if(s.resolving){let f=Qd(a[e]);throw pp(f)}let l=KD(s.canSeeViewProviders);s.resolving=!0;let c=a[e].type||a[e],u,m=s.injectImpl?En(s.injectImpl):null,h=zp(t,i,0);try{o=t[e]=s.factory(void 0,r,a,t,i),n.firstCreatePass&&e>=i.directiveStart&&XR(e,a[e],n)}finally{m!==null&&En(m),KD(l),s.resolving=!1,Up()}}return o}function dO(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Ko)?t[Ko]:void 0;return typeof n=="number"?n>=0?n&WC:uO:n}function QD(t,n,e){let i=1<>qC)]&i)}function ZD(t,n){return!(t&2)&&!(t&1&&n)}var sa=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return ZC(this._tNode,this._lView,n,Go(i),e)}};function uO(){return new sa(St(),se())}function it(t){return bs(()=>{let n=t.prototype.constructor,e=n[xl]||ug(n),i=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){let o=r[xl]||ug(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function ug(t){return lp(t)?()=>{let n=ug(It(t));return n&&n()}:Wo(t)}function mO(t,n,e,i,r){let o=t,a=n;for(;o!==null&&a!==null&&a[ue]&2048&&!ea(a);){let s=XC(o,a,e,i|2,Ki);if(s!==Ki)return s;let l=o.parent;if(!l){let c=a[xp];if(c){let u=c.get(e,Ki,i);if(u!==Ki)return u}l=JC(a),a=a[Qo]}o=l}return r}function JC(t){let n=t[J],e=n.type;return e===2?n.declTNode:e===1?t[nn]:null}function Xg(t){return lO(St(),t)}function fO(){return vs(St(),se())}function vs(t,n){return new N(kn(t,n))}var N=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=fO}return t})();function ew(t){return t instanceof N?t.nativeElement:t}function hO(){return this._results[Symbol.iterator]()}var _r=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new S}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let i=mD(n);(this._changesDetected=!uD(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=hO},tw="ngSkipHydration",pO="ngskiphydration";function nw(t){let n=t.mergedAttrs;if(n===null)return!1;for(let e=0;evO}),vO="ng",Yu=new D(""),qn=new D("",{providedIn:"platform",factory:()=>"unknown"});var Jr=new D(""),Ds=new D("",{providedIn:"root",factory:()=>ys().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function yO(){let t=new ua;return t.store=DO(ys(),d(hn)),t}var ua=(()=>{class t{static \u0275prov=w({token:t,providedIn:"root",factory:yO});store={};onSerializeCallbacks={};get(e,i){return this.store[e]!==void 0?this.store[e]:i}set(e,i){this.store[e]=i}remove(e){delete this.store[e]}hasKey(e){return this.store.hasOwnProperty(e)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(e,i){this.onSerializeCallbacks[e]=i}toJson(){for(let e in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(e))try{this.store[e]=this.onSerializeCallbacks[e]()}catch(i){console.warn("Exception in onSerialize callback: ",i)}return JSON.stringify(this.store).replace(/bw});var r_=new D(""),vw=!1,yw=new D(""),o_=new D("",{providedIn:"root",factory:()=>new Map});var Kl="ngb";var Dw=(t,n,e)=>{let i=t,r=i.__jsaction_fns??new Map,o=r.get(n)??[];o.push(e),r.set(n,o),i.__jsaction_fns=r},Cw=(t,n)=>{let e=t,i=e.getAttribute(Kl)??"",r=n.get(i)??new Set;r.has(e)||r.add(e),n.set(i,r)};var ww=t=>{t.removeAttribute(Cu.JSACTION),t.removeAttribute(Kl),t.__jsaction_fns=void 0},Ew=new D("",{providedIn:"root",factory:()=>({})});function a_(t,n){let e=n?.__jsaction_fns?.get(t.type);if(!(!e||!n?.isConnected))for(let i of e)i(t)}var hg=new Map;function xw(t,n){return hg.set(t,n),()=>hg.delete(t)}var JD=!1,Iw=(t,n,e,i)=>{};function EO(t,n,e,i){Iw(t,n,e,i)}function Tw(){JD||(Iw=(t,n,e,i)=>{let r=t[ui].get(hn);hg.get(r)?.(n,e,i)},JD=!0)}var Qu=new D("");function Ql(t){return(t.flags&32)===32}var xO="__nghData__",s_=xO,IO="__nghDeferData__",Sw=IO;var Au="ngh",Mw="nghm",kw=()=>null;function TO(t,n,e=!1){let i=t.getAttribute(Au);if(i==null)return null;let[r,o]=i.split("|");if(i=e?o:r,!i)return null;let a=o?`|${o}`:"",s=e?r:a,l={};if(i!==""){let u=n.get(ua,null,{optional:!0});u!==null&&(l=u.get(s_,[])[Number(i)])}let c={data:l,firstChild:t.firstChild??null};return e&&(c.firstChild=t,Zu(c,0,t.nextSibling)),s?t.setAttribute(Au,s):t.removeAttribute(Au),c}function Aw(){kw=TO}function Rw(t,n,e=!1){return kw(t,n,e)}function Ow(t){let n=t._lView;return n[J].type===2?null:(ea(n)&&(n=n[Le]),n)}function SO(t){return t.textContent?.replace(/\s/gm,"")}function MO(t){let n=ys(),e=n.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode(o){let a=SO(o);return a==="ngetn"||a==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),i,r=[];for(;i=e.nextNode();)r.push(i);for(let o of r)o.textContent==="ngetn"?o.replaceWith(n.createTextNode("")):o.remove()}function Zu(t,n,e){t.segmentHeads??={},t.segmentHeads[n]=e}function pg(t,n){return t.segmentHeads?.[n]??null}function Nw(t){return t.get(yw,!1,{optional:!0})}function kO(t,n){let e=t.data,i=e[uw]?.[n]??null;return i===null&&e[Ku]?.[n]&&(i=l_(t,n)),i}function Fw(t,n){return t.data[Ku]?.[n]??null}function l_(t,n){let e=Fw(t,n)??[],i=0;for(let r of e)i+=r[Bl]*(r[t_]??1);return i}function AO(t){if(typeof t.disconnectedNodes>"u"){let n=t.data[n_];t.disconnectedNodes=n?new Set(n):null}return t.disconnectedNodes}function Pw(t,n){if(typeof t.disconnectedNodes>"u"){let e=t.data[n_];t.disconnectedNodes=e?new Set(e):null}return!!AO(t)?.has(n)}function Xu(t,n){let e=t[rn];return e!==null&&!mu()&&!Ql(n)&&!Pw(e,n.index-Le)}function RO(t,n){let e=n.get(Qu),r=n.get(ua).get(Sw,{}),o=!1,a=t,s=null,l=[];for(;!o&&a;){o=e.has(a);let c=e.hydrating.get(a);if(s===null&&c!=null){s=c.promise;break}l.unshift(a),a=r[a][_w]}return{parentBlockPromise:s,hydrationQueue:l}}function Kp(t){return!!t&&t.nodeType===Node.COMMENT_NODE&&t.textContent?.trim()===Mw}function eC(t){for(;t&&t.nodeType===Node.TEXT_NODE;)t=t.previousSibling;return t}function Lw(t){for(let i of t.body.childNodes)if(Kp(i))return;let n=eC(t.body.previousSibling);if(Kp(n))return;let e=eC(t.head.lastChild);if(!Kp(e))throw new x(-507,!1)}function Vw(t,n){let e=t.contentQueries;if(e!==null){let i=ce(null);try{for(let r=0;rt,createScript:t=>t,createScriptURL:t=>t})}catch{}return Eu}function Ju(t){return OO()?.createHTML(t)||t}var xu;function NO(){if(xu===void 0&&(xu=null,$n.trustedTypes))try{xu=$n.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xu}function tC(t){return NO()?.createHTML(t)||t}var vr=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Xd})`}},_g=class extends vr{getTypeName(){return"HTML"}},bg=class extends vr{getTypeName(){return"Style"}},vg=class extends vr{getTypeName(){return"Script"}},yg=class extends vr{getTypeName(){return"URL"}},Dg=class extends vr{getTypeName(){return"ResourceURL"}};function gi(t){return t instanceof vr?t.changingThisBreaksApplicationSecurity:t}function yr(t,n){let e=Bw(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Xd})`)}return e===n}function Bw(t){return t instanceof vr&&t.getTypeName()||null}function d_(t){return new _g(t)}function u_(t){return new bg(t)}function m_(t){return new vg(t)}function f_(t){return new yg(t)}function h_(t){return new Dg(t)}function FO(t){let n=new wg(t);return PO()?new Cg(n):n}var Cg=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(Ju(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},wg=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Ju(n),e}};function PO(){try{return!!new window.DOMParser().parseFromString(Ju(""),"text/html")}catch{return!1}}var LO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Zl(t){return t=String(t),t.match(LO)?t:"unsafe:"+t}function Dr(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Xl(...t){let n={};for(let e of t)for(let i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}var jw=Dr("area,br,col,hr,img,wbr"),Hw=Dr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),zw=Dr("rp,rt"),VO=Xl(zw,Hw),BO=Xl(Hw,Dr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),jO=Xl(zw,Dr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nC=Xl(jw,BO,jO,VO),Uw=Dr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),HO=Dr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zO=Dr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),UO=Xl(Uw,HO,zO),$O=Dr("script,style,template"),Eg=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,i=!0,r=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){r.push(e),e=qO(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=WO(e);if(o){e=o;break}e=r.pop()}}return this.buf.join("")}startElement(n){let e=iC(n).toLowerCase();if(!nC.hasOwnProperty(e))return this.sanitizedSomething=!0,!$O.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let i=n.attributes;for(let r=0;r"),!0}endElement(n){let e=iC(n).toLowerCase();nC.hasOwnProperty(e)&&!jw.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(rC(n))}};function GO(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function WO(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw $w(n);return n}function qO(t){let n=t.firstChild;if(n&&GO(t,n))throw $w(n);return n}function iC(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function $w(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var YO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,KO=/([^\#-~ |!])/g;function rC(t){return t.replace(/&/g,"&").replace(YO,function(n){let e=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((e-55296)*1024+(i-56320)+65536)+";"}).replace(KO,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Iu;function em(t,n){let e=null;try{Iu=Iu||FO(t);let i=n?String(n):"";e=Iu.getInertBodyElement(i);let r=5,o=i;do{if(r===0)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=Iu.getInertBodyElement(i)}while(i!==o);let s=new Eg().sanitizeChildren(oC(e)||e);return Ju(s)}finally{if(e){let i=oC(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function oC(t){return"content"in t&&QO(t)?t.content:null}function QO(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var _i=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t})(_i||{});function eo(t){let n=Gw();return n?tC(n.sanitize(_i.HTML,t)||""):yr(t,"HTML")?tC(gi(t)):em(ys(),mr(t))}function p_(t){let n=Gw();return n?n.sanitize(_i.URL,t)||"":yr(t,"URL")?gi(t):Zl(mr(t))}function Gw(){let t=se();return t&&t[Hi].sanitizer}var ZO=/^>|^->||--!>|)/g,JO="\u200B$1\u200B";function e1(t){return t.replace(ZO,n=>n.replace(XO,JO))}function g_(t){return t.ownerDocument.defaultView}function Ww(t){return t.ownerDocument.body}function t1(t,n,e){let i=t.length;for(;;){let r=t.indexOf(n,e);if(r===-1)return r;if(r===0||t.charCodeAt(r-1)<=32){let o=n.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}e=r+1}}var qw="ng-template";function n1(t,n,e,i){let r=0;if(i){for(;r-1){let o;for(;++ro?m="":m=r[u+1].toLowerCase(),i&2&&c!==m){if(hi(i))return!1;a=!0}}}}return hi(i)||a}function hi(t){return(t&1)===0}function o1(t,n,e,i){if(n===null)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+s+'"':"")+"]"}else i&8?r+="."+a:i&4&&(r+=" "+a);else r!==""&&!hi(a)&&(n+=aC(o,r),r=""),i=a,o=o||!hi(i);e++}return r!==""&&(n+=aC(o,r)),n}function u1(t){return t.map(d1).join(",")}function m1(t){let n=[],e=[],i=1,r=2;for(;i=0?i[s]():i[-s].unsubscribe(),a+=2}else{let s=i[e[a+1]];e[a].call(s)}i!==null&&(n[es]=null);let r=n[ur];if(r!==null){n[ur]=null;for(let a=0;aLe&&nE(t,n,Le,!1),Ve(a?2:0,r,e),e(i,r)}finally{Qr(o),Ve(a?3:1,r,e)}}function rm(t,n,e){F1(t,n,e),(e.flags&64)===64&&P1(t,n,e)}function Jl(t,n,e=kn){let i=n.localNames;if(i!==null){let r=n.index+1;for(let o=0;onull;function O1(t){iw(t)?Xw(t):MO(t)}function dE(){cE=O1}function N1(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function uE(t,n,e,i,r,o){let a=n[J];if(om(t,a,n,e,i)){$i(t)&&fE(n,t.index);return}t.type&3&&(e=N1(e)),mE(t,n,e,i,r,o)}function mE(t,n,e,i,r,o){if(t.type&3){let a=kn(t,n);i=o!=null?o(i,t.value||"",e):i,r.setProperty(a,e,i)}else t.type&12}function fE(t,n){let e=Wn(n,t);e[ue]&16||(e[ue]|=64)}function F1(t,n,e){let i=e.directiveStart,r=e.directiveEnd;$i(e)&&b1(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Lu(e,n);let o=e.initialInputs;for(let a=i;a{Kr(t.lView)},consumerOnSignalRead(){this.lView[In]=this}});function Y1(t){let n=t[In]??Object.create(K1);return n.lView=t,n}var K1=Ie(V({},Ro),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=Gr(t.lView);for(;n&&!bE(n[J]);)n=Gr(n);n&&cu(n)},consumerOnSignalRead(){this.lView[In]=this}});function bE(t){return t.type!==2}function vE(t){if(t[hr]===null)return;let n=!0;for(;n;){let e=!1;for(let i of t[hr])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));n=e&&!!(t[ue]&8192)}}var Q1=100;function R_(t,n=0){let i=t[Hi].rendererFactory,r=!1;r||i.begin?.();try{Z1(t,n)}finally{r||i.end?.()}}function Z1(t,n){let e=jp();try{os(!0),Tg(t,n);let i=0;for(;is(t);){if(i===Q1)throw new x(103,!1);i++,Tg(t,1)}}finally{os(e)}}function yE(t,n){Bp(n?Ol.Exhaustive:Ol.OnlyDirtyViews);try{R_(t)}finally{Bp(Ol.Off)}}function X1(t,n,e,i){if(Yr(n))return;let r=n[ue],o=!1,a=!1;gu(n);let s=!0,l=null,c=null;o||(bE(t)?(c=$1(n),l=jr(c)):pd()===null?(s=!1,c=Y1(n),l=jr(c)):n[In]&&(Hr(n[In]),n[In]=null));try{Mp(n),ND(t.bindingStartIndex),e!==null&&lE(t,n,e,2,i);let u=(r&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&Su(n,f,null)}else{let f=t.preOrderHooks;f!==null&&Mu(n,f,0,null),qp(n,0)}if(a||J1(n),vE(n),DE(n,0),t.contentQueries!==null&&Vw(t,n),!o)if(u){let f=t.contentCheckHooks;f!==null&&Su(n,f)}else{let f=t.contentHooks;f!==null&&Mu(n,f,1),qp(n,1)}tN(t,n);let m=t.components;m!==null&&wE(n,m,0);let h=t.viewQuery;if(h!==null&&gg(2,h,i),!o)if(u){let f=t.viewCheckHooks;f!==null&&Su(n,f)}else{let f=t.viewHooks;f!==null&&Mu(n,f,2),qp(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[su]){for(let f of n[su])f();n[su]=null}o||(gE(n),n[ue]&=-73)}catch(u){throw o||Kr(n),u}finally{c!==null&&(Oo(c,l),s&&W1(c)),_u()}}function DE(t,n){for(let e=aw(t);e!==null;e=sw(e))for(let i=Tt;i0&&(t[e-1][Gn]=i[Gn]);let o=Sl(t,Tt+n);y1(i[J],i);let a=o[zi];a!==null&&a.detachView(o[J]),i[mt]=null,i[Gn]=null,i[ue]&=-129}return i}function nN(t,n,e,i){let r=Tt+i,o=e.length;i>0&&(e[r-1][Gn]=n),i-1&&(Hl(n,i),Sl(e,i))}this._attachedToViewContainer=!1}nm(this._lView[J],this._lView)}onDestroy(n){kp(this._lView,n)}markForCheck(){am(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[ue]&=-129}reattach(){du(this._lView),this._lView[ue]|=128}detectChanges(){this._lView[ue]|=1024,R_(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new x(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=ea(this._lView),e=this._lView[qr];e!==null&&!n&&E_(e,this._lView),iE(this._lView[J],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new x(902,!1);this._appRef=n;let e=ea(this._lView),i=this._lView[qr];i!==null&&!e&&IE(i,this._lView),du(this._lView)}};function N_(t){return is(t._lView)||!!(t._lView[ue]&64)}function F_(t){cu(t._lView)}var Rt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=iN;constructor(e,i,r){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,r){let o=Cs(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:r});return new Zr(o)}}return t})();function iN(){return sm(St(),se())}function sm(t,n){return t.type&4?new Rt(n,t,vs(t,n)):null}function Es(t,n,e,i,r){let o=t.data[n];if(o===null)o=rN(t,n,e,i,r),FD()&&(o.flags|=32);else if(o.type&64){o.type=e,o.value=i,o.attrs=r;let a=AD();o.injectorIndex=a===null?-1:a.injectorIndex}return rs(o,!0),o}function rN(t,n,e,i,r){let o=Pp(),a=Lp(),s=a?o:o&&o.parent,l=t.data[n]=aN(t,s,e,n,i,r);return oN(t,l,o,a),l}function oN(t,n,e,i){t.firstChild===null&&(t.firstChild=n),e!==null&&(i?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function aN(t,n,e,i,r,o){let a=n?n.injectorIndex:-1,s=0;return mu()&&(s|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var sN=new RegExp(`^(\\d+)*(${dw}|${cw})*(.*)`);function lN(t){let n=t.match(sN),[e,i,r,o]=n,a=i?parseInt(i,10):r,s=[];for(let[l,c,u]of o.matchAll(/(f|n)(\d*)/g)){let m=parseInt(u,10)||1;s.push(c,m)}return[a,...s]}function cN(t){return!t.prev&&t.parent?.type===8}function Zp(t){return t.index-Le}function dN(t,n){let e=t.i18nNodes;if(e)return e.get(n)}function lm(t,n,e,i){let r=Zp(i),o=dN(t,r);if(o===void 0){let a=t.data[hw];if(a?.[r])o=mN(a[r],e);else if(n.firstChild===i)o=t.firstChild;else{let s=i.prev===null,l=i.prev??i.parent;if(cN(i)){let c=Zp(i.parent);o=pg(t,c)}else{let c=kn(l,e);if(s)o=c.firstChild;else{let u=Zp(l),m=pg(t,u);if(l.type===2&&m){let f=l_(t,u)+1;o=cm(f,m)}else o=c.nextSibling}}}}return o}function cm(t,n){let e=n;for(let i=0;i0&&(o.firstChild=t,t=cm(i[Bl],t)),e.push(o)}return[t,e]}var ME=()=>null,kE=()=>null;function AE(){ME=vN,kE=yN}function vN(t,n){return OE(t,n)?t[mi].shift():(dm(t),null)}function zl(t,n){return ME(t,n)}function yN(t,n,e){if(n.tView.ssrId===null)return null;let i=zl(t,n.tView.ssrId);return e[J].firstUpdatePass&&i===null&&DN(e,n),i}function RE(t,n,e){return kE(t,n,e)}function DN(t,n){let e=n;for(;e;){if(dC(t,e))return;if((e.flags&256)===256)break;e=e.prev}for(e=n.next;e&&(e.flags&512)===512;){if(dC(t,e))return;e=e.next}}function OE(t,n){let e=t[mi];return!n||e===null||e.length===0?!1:e[0].data[fw]===n}function dC(t,n){let e=n.tView?.ssrId;if(e==null)return!1;let i=t[n.index];return Sn(i)&&OE(i,e)?(dm(i),!0):!1}var NE=class{},mm=class{},Sg=class{resolveComponentFactory(n){throw new x(917,!1)}},ma=class{static NULL=new Sg},ct=class{},Pe=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>CN()}return t})();function CN(){let t=se(),n=St(),e=Wn(n.index,t);return(Tn(e)?e:t)[Ne]}var FE=(()=>{class t{static \u0275prov=w({token:t,providedIn:"root",factory:()=>null})}return t})();var Ru={},us=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){let r=this.injector.get(n,Ru,i);return r!==Ru||e===Ru?r:this.parentInjector.get(n,e,i)}};function Hu(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,o=0;if(n!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let h=0;h0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function kN(t,n,e){if(e){if(n.exportAs)for(let i=0;ii(Mn(v[t.index])):t.index;HE(g,n,e,o,s,f,!1)}return c}function PN(t,n,e,i){let r=t.cleanup;if(r!=null)for(let o=0;ol?s[l]:null}typeof a=="string"&&(o+=2)}return null}function HE(t,n,e,i,r,o,a){let s=n.firstCreatePass?Rp(n):null,l=Ap(e),c=l.length;l.push(r,o),s&&s.push(i,t,c,(c+1)*(a?-1:1))}function pC(t,n,e,i,r,o){let a=n[e],s=n[J],c=s.data[e].outputs[i],m=a[c].subscribe(o);HE(t.index,s,n,r,o,m,!0)}var Mg=Symbol("BINDING");var kg=class extends ma{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=fr(n);return new ps(e,this.ngModule)}};function LN(t){return Object.keys(t).map(n=>{let[e,i,r]=t[n],o={propName:e,templateName:n,isSignal:(i&tm.SignalBased)!==0};return r&&(o.transform=r),o})}function VN(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function BN(t,n,e){let i=n instanceof st?n:n?.injector;return i&&t.getStandaloneInjector!==null&&(i=t.getStandaloneInjector(i)||i),i?new us(e,i):e}function jN(t){let n=t.get(ct,null);if(n===null)throw new x(407,!1);let e=t.get(FE,null),i=t.get(en,null);return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:i,ngReflect:!1}}function HN(t,n){let e=zE(t);return b_(n,e,e==="svg"?Tp:e==="math"?DD:null)}function zE(t){return(t.selectors[0][0]||"div").toLowerCase()}var ps=class extends mm{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=LN(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=VN(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=u1(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,i,r,o,a){Ve(22);let s=ce(null);try{let l=this.componentDef,c=zN(i,l,a,o),u=BN(l,r||this.ngModule,n),m=jN(u),h=m.rendererFactory.createRenderer(null,l),f=i?A1(h,i,l.encapsulation,u):HN(l,h),g=a?.some(gC)||o?.some(T=>typeof T!="function"&&T.bindings.some(gC)),v=D_(null,c,null,512|eE(l),null,null,m,h,u,null,Rw(f,u,!0));v[Le]=f,gu(v);let E=null;try{let T=V_(Le,v,2,"#host",()=>c.directiveRegistry,!0,0);f&&(Jw(h,f,T),hs(f,v)),rm(c,v,T),c_(c,T,v),B_(c,T),e!==void 0&&$N(T,this.ngContentSelectors,e),E=Wn(T.index,v),v[ft]=E[ft],A_(c,v,null)}catch(T){throw E!==null&&mg(E),mg(v),T}finally{Ve(23),_u()}return new zu(this.componentType,v,!!g)}finally{ce(s)}}};function zN(t,n,e,i){let r=t?["ng-version","20.2.3"]:m1(n.selectors[0]),o=null,a=null,s=0;if(e)for(let u of e)s+=u[Mg].requiredVars,u.create&&(u.targetIdx=0,(o??=[]).push(u)),u.update&&(u.targetIdx=0,(a??=[]).push(u));if(i)for(let u=0;u{if(e&1&&t)for(let i of t)i.create();if(e&2&&n)for(let i of n)i.update()}}function gC(t){let n=t[Mg].kind;return n==="input"||n==="twoWay"}var zu=class extends NE{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=ta(e[J],Le),this.location=vs(this._tNode,e),this.instance=Wn(this._tNode.index,e)[ft],this.hostView=this.changeDetectorRef=new Zr(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let r=this._rootLView,o=om(i,r[J],r,n,e);this.previousInputValues.set(n,e);let a=Wn(i.index,r);am(a,1)}get injector(){return new sa(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function $N(t,n,e){let i=t.projection=[];for(let r=0;r{class t{static __NG_ELEMENT_ID__=GN}return t})();function GN(){let t=St();return $E(t,se())}var WN=ht,UE=class extends WN{_lContainer;_hostTNode;_hostLView;constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return vs(this._hostTNode,this._hostLView)}get injector(){return new sa(this._hostTNode,this._hostLView)}get parentInjector(){let n=Zg(this._hostTNode,this._hostLView);if(GC(n)){let e=Pu(n,this._hostLView),i=Fu(n),r=e[J].data[i+8];return new sa(r,e)}else return new sa(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=_C(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Tt}createEmbeddedView(n,e,i){let r,o;typeof i=="number"?r=i:i!=null&&(r=i.index,o=i.injector);let a=zl(this._lContainer,n.ssrId),s=n.createEmbeddedViewImpl(e||{},o,a);return this.insertImpl(s,r,ca(this._hostTNode,a)),s}createComponent(n,e,i,r,o,a,s){let l=n&&!YR(n),c;if(l)c=e;else{let E=e||{};c=E.index,i=E.injector,r=E.projectableNodes,o=E.environmentInjector||E.ngModuleRef,a=E.directives,s=E.bindings}let u=l?n:new ps(fr(n)),m=i||this.parentInjector;if(!o&&u.ngModule==null){let T=(l?m:this.parentInjector).get(st,null);T&&(o=T)}let h=fr(u.componentType??{}),f=zl(this._lContainer,h?.id??null),g=f?.firstChild??null,v=u.create(m,r,g,o,a,s);return this.insertImpl(v.hostView,c,ca(this._hostTNode,f)),v}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,i){let r=n._lView;if(ED(r)){let s=this.indexOf(n);if(s!==-1)this.detach(s);else{let l=r[mt],c=new UE(l,l[nn],l[mt]);c.detach(c.indexOf(n))}}let o=this._adjustIndex(e),a=this._lContainer;return ws(a,r,o,i),n.attachToViewContainerRef(),bp(Jp(a),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=_C(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),i=Hl(this._lContainer,e);i&&(Sl(Jp(this._lContainer),e),nm(i[J],i))}detach(n){let e=this._adjustIndex(n,-1),i=Hl(this._lContainer,e);return i&&Sl(Jp(this._lContainer),e)!=null?new Zr(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function _C(t){return t[Rl]}function Jp(t){return t[Rl]||(t[Rl]=[])}function $E(t,n){let e,i=n[t.index];return Sn(i)?e=i:(e=EE(i,n,null,t),n[t.index]=e,C_(n,e)),GE(e,n,t,i),new UE(e,t,n)}function qN(t,n){let e=t[Ne],i=e.createComment(""),r=kn(n,t),o=e.parentNode(r);return Bu(e,o,i,e.nextSibling(r),!1),i}var GE=WE,H_=()=>!1;function YN(t,n,e){return H_(t,n,e)}function WE(t,n,e,i){if(t[Ui])return;let r;e.type&8?r=Mn(i):r=qN(n,e),t[Ui]=r}function KN(t,n,e){if(t[Ui]&&t[mi])return!0;let i=e[rn],r=n.index-Le;if(!i||rw(n)||Pw(i,r))return!1;let a=pg(i,r),s=i.data[Ku]?.[r],[l,c]=bN(a,s);return t[Ui]=l,t[mi]=c,!0}function QN(t,n,e,i){H_(t,e,n)||WE(t,n,e,i)}function qE(){GE=QN,H_=KN}var Ag=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Rg=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let i=n.contentQueries!==null?n.contentQueries[0]:e.length,r=[];for(let o=0;o0)i.push(a[s/2]);else{let c=o[s+1],u=n[-l];for(let m=Tt;mn.trim())}function XE(t,n,e){t.queries===null&&(t.queries=new Og),t.queries.track(new Ng(n,e))}function nF(t,n){let e=t.contentQueries||(t.contentQueries=[]),i=e.length?e[e.length-1]:-1;n!==i&&e.push(t.queries.length-1,n)}function U_(t,n){return t.queries.getByIndex(n)}function JE(t,n){let e=t[J],i=U_(e,n);return i.crossesNgTemplate?Fg(e,t,n,[]):YE(e,t,i,n)}function ex(t,n,e){let i,r=gl(()=>{i._dirtyCounter();let o=iF(i,t);if(n&&o===void 0)throw new x(-951,!1);return o});return i=r[vt],i._dirtyCounter=Me(0),i._flatValue=void 0,r}function $_(t){return ex(!0,!1,t)}function G_(t){return ex(!0,!0,t)}function tx(t,n){let e=t[vt];e._lView=se(),e._queryIndex=n,e._queryList=z_(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function iF(t,n){let e=t._lView,i=t._queryIndex;if(e===void 0||i===void 0||e[ue]&4)return n?void 0:Ut;let r=z_(e,i),o=JE(e,i);return r.reset(o,ew),n?r.first:r._changesDetected||t._flatValue===void 0?t._flatValue=r.toArray():t._flatValue}var bC=new Set;function Fn(t){bC.has(t)||(bC.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Xr=class{};var Ul=class extends Xr{injector;componentFactoryResolver=new kg(this);instance=null;constructor(n){super();let e=new Yo([...n.providers,{provide:Xr,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],n.parent||Xa(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function W_(t,n,e=null){return new Ul({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var rF=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=au(!1,e.type),r=i.length>0?W_([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,r)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:t,providedIn:"environment",factory:()=>new t(X(st))})}return t})();function B(t){return bs(()=>{let n=nx(t),e=Ie(V({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Jg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?r=>r.get(rF).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||br.Emulated,styles:t.styles||Ut,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Fn("NgStandalone"),ix(e);let i=t.dependencies;return e.directiveDefs=vC(i,oF),e.pipeDefs=vC(i,Dp),e.id=lF(e),e})}function oF(t){return fr(t)||Ml(t)}function G(t){return bs(()=>({type:t.type,bootstrap:t.bootstrap||Ut,declarations:t.declarations||Ut,imports:t.imports||Ut,exports:t.exports||Ut,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function aF(t,n){if(t==null)return di;let e={};for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,a,s,l;Array.isArray(r)?(s=r[0],o=r[1],a=r[2]??o,l=r[3]||null):(o=r,a=r,s=tm.None,l=null),e[o]=[i,s,l],n[o]=a}return e}function sF(t){if(t==null)return di;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function A(t){return bs(()=>{let n=nx(t);return ix(n),n})}function q_(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function nx(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||di,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ut,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:aF(t.inputs,n),outputs:sF(t.outputs),debugInfo:null}}function ix(t){t.features?.forEach(n=>n(t))}function vC(t,n){return t?()=>{let e=typeof t=="function"?t():t,i=[];for(let r of e){let o=n(r);o!==null&&i.push(o)}return i}:null}function lF(t){let n=0,e=typeof t.consts=="function"?"":t.consts,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of i.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function cF(t){return Object.getPrototypeOf(t.prototype).constructor}function ye(t){let n=cF(t.type),e=!0,i=[t];for(;n;){let r;if(fi(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new x(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);let a=t;a.inputs=eg(t.inputs),a.declaredInputs=eg(t.declaredInputs),a.outputs=eg(t.outputs);let s=r.hostBindings;s&&hF(t,s);let l=r.viewQuery,c=r.contentQueries;if(l&&mF(t,l),c&&fF(t,c),dF(t,r),aD(t.outputs,r.outputs),fi(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let o=r.features;if(o)for(let a=0;a=0;i--){let r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=fs(r.hostAttrs,e=fs(e,r.hostAttrs))}}function eg(t){return t===di?{}:t===Ut?[]:t}function mF(t,n){let e=t.viewQuery;e?t.viewQuery=(i,r)=>{n(i,r),e(i,r)}:t.viewQuery=n}function fF(t,n){let e=t.contentQueries;e?t.contentQueries=(i,r,o)=>{n(i,r,o),e(i,r,o)}:t.contentQueries=n}function hF(t,n){let e=t.hostBindings;e?t.hostBindings=(i,r)=>{n(i,r),e(i,r)}:t.hostBindings=n}function Y_(t){let n=e=>{let i=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=pF,e.hostDirectives=i?t.map(Pg):[t]):i?e.hostDirectives.unshift(...t.map(Pg)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function pF(t){let n=[],e=!1,i=null,r=null;for(let o=0;onull),a=i;if(n&&typeof n=="object"){let l=n;r=l.next?.bind(l),o=l.error?.bind(l),a=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),r&&(r=this.wrapInTimeout(r)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:r,error:o,complete:a});return n instanceof ge&&n.add(s),s}wrapInTimeout(n){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}},R=Lg;function dx(t){let n,e;function i(){t=ra;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),i()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),i()})),()=>i()}function wC(t){return queueMicrotask(()=>t()),()=>{t=ra}}var Q_="isAngularZone",$u=Q_+"_ID",TF=0,F=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new R(!1);onMicrotaskEmpty=new R(!1);onStable=new R(!1);onError=new R(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:r=!1,scheduleInRootZone:o=cx}=n;if(typeof Zone>"u")throw new x(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!r&&i,a.shouldCoalesceRunChangeDetection=r,a.callbackScheduled=!1,a.scheduleInRootZone=o,kF(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Q_)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new x(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new x(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){let o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+r,n,SF,ra,ra);try{return o.runTask(a,e,i)}finally{o.cancelTask(a)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}},SF={};function Z_(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function MF(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){dx(()=>{t.callbackScheduled=!1,Vg(t),t.isCheckStableRunning=!0,Z_(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Vg(t)}function kF(t){let n=()=>{MF(t)},e=TF++;t._inner=t._inner.fork({name:"angular",properties:{[Q_]:!0,[$u]:e,[$u+e]:!0},onInvokeTask:(i,r,o,a,s,l)=>{if(AF(l))return i.invokeTask(o,a,s,l);try{return EC(t),i.invokeTask(o,a,s,l)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),xC(t)}},onInvoke:(i,r,o,a,s,l,c)=>{try{return EC(t),i.invoke(o,a,s,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!RF(l)&&n(),xC(t)}},onHasTask:(i,r,o,a)=>{i.hasTask(o,a),r===o&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,Vg(t),Z_(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(i,r,o,a)=>(i.handleError(o,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function Vg(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function EC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xC(t){t._nesting--,Z_(t)}var $l=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new R;onMicrotaskEmpty=new R;onStable=new R;onError=new R;run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}};function AF(t){return ux(t,"__ignore_ng_zone__")}function RF(t){return ux(t,"__scheduler_tick__")}function ux(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var hm=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=w({token:t,providedIn:"root",factory:()=>new t})}return t})(),X_=[0,1,2,3],J_=(()=>{class t{ngZone=d(F);scheduler=d(en);errorHandler=d(xn,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(to,{optional:!0})}execute(){let e=this.sequences.size>0;e&&Ve(16),this.executing=!0;for(let i of X_)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[i]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=r.hooks[i];return o(r.pipelinedValue)},r.snapshot))}catch(o){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&Ve(17)}register(e){let{view:i}=e;i!==void 0?((i[Xo]??=[]).push(e),Kr(i),i[ue]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,i){return i?i.run(fm.AFTER_NEXT_RENDER,e):e()}static \u0275prov=w({token:t,providedIn:"root",factory:()=>new t})}return t})(),Gl=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,i,r,o,a=null){this.impl=n,this.hooks=e,this.view=i,this.once=r,this.snapshot=a,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[Xo];n&&(this.view[Xo]=n.filter(e=>e!==this))}};function Dt(t,n){let e=n?.injector??d(U);return Fn("NgAfterNextRender"),NF(t,e,n,!0)}function OF(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function NF(t,n,e,i){let r=n.get(hm);r.impl??=n.get(J_);let o=n.get(to,null,{optional:!0}),a=e?.manualCleanup!==!0?n.get(On):null,s=n.get(ia,null,{optional:!0}),l=new Gl(r.impl,OF(t),s?.view,i,a,o?.snapshot(null));return r.impl.register(l),l}function mx(t){return t+1}function Is(t,n){let e=t[J],i=mx(n.index);return t[i]}function tc(t,n){let e=mx(n.index);return t.data[e]}function FF(t,n,e){let i=n[J],r=tc(i,e);switch(t){case yt.Complete:return r.primaryTmplIndex;case yt.Loading:return r.loadingTmplIndex;case yt.Error:return r.errorTmplIndex;case yt.Placeholder:return r.placeholderTmplIndex;default:return null}}function IC(t,n){return n===yt.Placeholder?t.placeholderBlockConfig?.[CC]??null:n===yt.Loading?t.loadingBlockConfig?.[CC]??null:null}function PF(t){return t.loadingBlockConfig?.[vF]??null}function TC(t,n){if(!t||t.length===0)return n;let e=new Set(t);for(let i of n)e.add(i);return t.length===e.size?t:Array.from(e)}function LF(t,n){let e=n.primaryTmplIndex+Le;return ta(t,e)}var VF=(()=>{class t{cachedInjectors=new Map;getOrCreateInjector(e,i,r,o){if(!this.cachedInjectors.has(e)){let a=r.length>0?W_(r,i,o):null;this.cachedInjectors.set(e,a)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=w({token:t,providedIn:"environment",factory:()=>new t})}return t})();var fx=new D("");function tg(t,n,e){return t.get(VF).getOrCreateInjector(n,t,e,"")}function BF(t,n,e){if(t instanceof us){let r=t.injector,o=t.parentInjector,a=tg(o,n,e);return new us(r,a)}let i=t.get(st);if(i!==t){let r=tg(i,n,e);return new us(t,r)}return tg(t,n,e)}function aa(t,n,e,i=!1){let r=e[mt],o=r[J];if(Yr(r))return;let a=Is(r,n),s=a[ec],l=a[wF];if(!(l!==null&&tr.data[gw]===n[ec])??-1;return{dehydratedView:e>-1?t[mi][e]:null,dehydratedViewIx:e}}function HF(t,n,e,i,r){Ve(20);let o=FF(t,r,i);if(o!==null){n[ec]=t;let a=r[J],s=o+Le,l=ta(a,s),c=0;O_(e,c);let u;if(t===yt.Complete){let g=tc(a,i),v=g.providers;v&&v.length>0&&(u=BF(r[ui],g,v))}let{dehydratedView:m,dehydratedViewIx:h}=jF(e,n),f=Cs(r,l,null,{injector:u,dehydratedView:m});if(ws(e,f,c,ca(l,m)),am(f,2),h>-1&&e[mi]?.splice(h,1),(t===yt.Complete||t===yt.Error)&&Array.isArray(n[ms])){for(let g of n[ms])g();n[ms]=null}}Ve(21)}function SC(t,n){return t{t.loadingState===Nn.COMPLETE?aa(yt.Complete,n,e):t.loadingState===Nn.FAILED&&aa(yt.Error,n,e)})}var zF=null;var eb=new D("");function Ts(t){return!!t&&typeof t.then=="function"}function tb(t){return!!t&&typeof t.subscribe=="function"}var hx=new D("");var nb=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=d(hx,{optional:!0})??[];injector=d(U);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let r of this.appInits){let o=Ja(this.injector,r);if(Ts(o))e.push(o);else if(tb(o)){let a=new Promise((s,l)=>{o.subscribe({complete:s,error:l})});e.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),e.length===0&&i(),this.initialized=!0}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ss=new D("");function px(){Nh(()=>{let t="";throw new x(600,t)})}function gx(t){return t.isBoundToModule}var UF=10;var Ct=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(qi);afterRenderManager=d(hm);zonelessEnabled=d(ss);rootEffectScheduler=d(Fl);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new S;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=d(gr);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(_e(e=>!e))}constructor(){d(to,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:r=>{r&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=d(st);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,r=U.NULL){return this._injector.get(F).run(()=>{Ve(10);let a=e instanceof mm;if(!this._injector.get(nb).done){let g="";throw new x(405,g)}let l;a?l=e:l=this._injector.get(ma).resolveComponentFactory(e),this.componentTypes.push(l.componentType);let c=gx(l)?void 0:this._injector.get(Xr),u=i||l.selector,m=l.create(r,[],u,c),h=m.location.nativeElement,f=m.injector.get(eb,null);return f?.registerApplication(h),m.onDestroy(()=>{this.detachView(m.hostView),Ll(this.components,m),f?.unregisterApplication(h)}),this._loadComponent(m),Ve(11,m),m})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ve(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(fm.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new x(101,!1);let e=ce(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,ce(e),this.afterTick.next(),Ve(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ct,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++is(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;Ll(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(r){this.internalErrorHandler(r)}this.components.push(e),this._injector.get(Ss,[]).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ll(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new x(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ll(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function _x(t,n,e){let i=n[ui],r=n[J];if(t.loadingState!==Nn.NOT_STARTED)return t.loadingPromise??Promise.resolve();let o=Is(n,e),a=LF(r,t);t.loadingState=Nn.IN_PROGRESS,Ou(1,o);let s=t.dependencyResolverFn,l=i.get(ls).add();return s?(t.loadingPromise=Promise.allSettled(s()).then(c=>{let u=!1,m=[],h=[];for(let f of c)if(f.status==="fulfilled"){let g=f.value,v=fr(g)||Ml(g);if(v)m.push(v);else{let E=Dp(g);E&&h.push(E)}}else{u=!0;break}if(u){if(t.loadingState=Nn.FAILED,t.errorTmplIndex===null){let g=new x(-750,!1);k_(n,g)}}else{t.loadingState=Nn.COMPLETE;let f=a.tView;if(m.length>0){f.directiveRegistry=TC(f.directiveRegistry,m);let g=m.map(E=>E.type),v=au(!1,...g);t.providers=v}h.length>0&&(f.pipeRegistry=TC(f.pipeRegistry,h))}}),t.loadingPromise.finally(()=>{t.loadingPromise=null,l()})):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=Nn.COMPLETE,l()}),t.loadingPromise)}function $F(t,n){return n[ui].get(fx,null,{optional:!0})?.behavior!==K_.Manual}function GF(t,n,e){let i=n[J],r=n[e.index];if(!$F(t,n))return;let o=Is(n,e),a=tc(i,e);switch(xF(o),a.loadingState){case Nn.NOT_STARTED:aa(yt.Loading,e,r),_x(a,n,e),a.loadingState===Nn.IN_PROGRESS&&MC(a,e,r);break;case Nn.IN_PROGRESS:aa(yt.Loading,e,r),MC(a,e,r);break;case Nn.COMPLETE:aa(yt.Complete,e,r);break;case Nn.FAILED:aa(yt.Error,e,r);break;default:}}async function bx(t,n,e){let i=t.get(Qu);if(i.hydrating.has(n))return;let{parentBlockPromise:o,hydrationQueue:a}=RO(n,t);if(a.length===0)return;o!==null&&a.shift(),YF(i,a),o!==null&&await o;let s=a[0];i.has(s)?await kC(t,a,e):i.awaitParentBlock(s,async()=>await kC(t,a,e))}async function kC(t,n,e){let i=t.get(Qu),r=i.hydrating,o=t.get(gr),a=o.add();for(let l=0;l-1?e.get(n[i]):null;r&&um(r.lContainer)}function AC(t,n){let e=n.hydrating;for(let i in t)e.get(i)?.reject();n.cleanup(t)}function YF(t,n){for(let e of n)t.hydrating.set(e,Promise.withResolvers())}function KF(t){return new Promise(n=>Dt(n,{injector:t}))}async function QF(t){let{tNode:n,lView:e}=t,i=Is(e,n);return new Promise(r=>{ZF(i,r),GF(2,e,n)})}function ZF(t,n){Array.isArray(t[ms])||(t[ms]=[]),t[ms].push(n)}var ng="aria";function Ms(t,n){let e=se(),i=Gi();if(fn(e,i,n)){let r=nt(),o=as();if(om(o,r,e,t,n))$i(o)&&fE(e,o.index);else{let s=kn(o,e),l=XF(t);hE(e[Ne],s,null,o.value,l,n,null)}}return Ms}function XF(t){return t.charAt(ng.length)!=="-"?ng+"-"+t.slice(ng.length).toLowerCase():t}function W(t,n,e,i){let r=se(),o=Gi();if(fn(r,o,n)){let a=nt(),s=as();V1(s,r,t,n,e,i)}return W}var ib=new D("",{providedIn:"root",factory:()=>!1}),rb=new D("",{providedIn:"root",factory:()=>JF}),JF=4e3;var y6=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bg=class{destroy(n){}updateValue(n,e){}swap(n,e){let i=Math.min(n,e),r=Math.max(n,e),o=this.detach(r);if(r-i>1){let a=this.detach(i);this.attach(i,o),this.attach(r,a)}else this.attach(i,o)}move(n,e){this.attach(e,this.detach(n))}};function ig(t,n,e,i,r){return t===e&&Object.is(n,i)?1:Object.is(r(t,n),r(e,i))?-1:0}function eP(t,n,e){let i,r,o=0,a=t.length-1,s=void 0;if(Array.isArray(n)){let l=n.length-1;for(;o<=a&&o<=l;){let c=t.at(o),u=n[o],m=ig(o,c,o,u,e);if(m!==0){m<0&&t.updateValue(o,u),o++;continue}let h=t.at(a),f=n[l],g=ig(a,h,l,f,e);if(g!==0){g<0&&t.updateValue(a,f),a--,l--;continue}let v=e(o,c),E=e(a,h),T=e(o,u);if(Object.is(T,E)){let ne=e(l,f);Object.is(ne,v)?(t.swap(o,a),t.updateValue(a,f),l--,a--):t.move(a,o),t.updateValue(o,u),o++;continue}if(i??=new Gu,r??=OC(t,o,a,e),jg(t,i,o,T))t.updateValue(o,u),o++,a++;else if(r.has(T))i.set(v,t.detach(o)),a--;else{let ne=t.create(o,n[o]);t.attach(o,ne),o++,a++}}for(;o<=l;)RC(t,i,e,o,n[o]),o++}else if(n!=null){let l=n[Symbol.iterator](),c=l.next();for(;!c.done&&o<=a;){let u=t.at(o),m=c.value,h=ig(o,u,o,m,e);if(h!==0)h<0&&t.updateValue(o,m),o++,c=l.next();else{i??=new Gu,r??=OC(t,o,a,e);let f=e(o,m);if(jg(t,i,o,f))t.updateValue(o,m),o++,a++,c=l.next();else if(!r.has(f))t.attach(o,t.create(o,m)),o++,a++,c=l.next();else{let g=e(o,u);i.set(g,t.detach(o)),a--}}}for(;!c.done;)RC(t,i,e,t.length,c.value),c=l.next()}for(;o<=a;)t.destroy(t.detach(a--));i?.forEach(l=>{t.destroy(l)})}function jg(t,n,e,i){return n!==void 0&&n.has(i)?(t.attach(e,n.get(i)),n.delete(i),!0):!1}function RC(t,n,e,i,r){if(jg(t,n,i,e(i,r)))t.updateValue(i,r);else{let o=t.create(i,r);t.attach(i,o)}}function OC(t,n,e,i){let r=new Set;for(let o=n;o<=e;o++)r.add(i(o,t.at(o)));return r}var Gu=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let i=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(i);)i=r.get(i);r.set(i,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,i]of this.kvMap)if(n(i,e),this._vMap!==void 0){let r=this._vMap;for(;r.has(i);)i=r.get(i),n(i,e)}}};function q(t,n,e,i,r,o,a,s){Fn("NgControlFlow");let l=se(),c=nt(),u=An(c.consts,o);return gs(l,c,t,n,e,i,r,u,256,a,s),ob}function ob(t,n,e,i,r,o,a,s){Fn("NgControlFlow");let l=se(),c=nt(),u=An(c.consts,o);return gs(l,c,t,n,e,i,r,u,512,a,s),ob}function Y(t,n){Fn("NgControlFlow");let e=se(),i=Gi(),r=e[i]!==$t?e[i]:-1,o=r!==-1?Wu(e,Le+r):void 0,a=0;if(fn(e,i,t)){let s=ce(null);try{if(o!==void 0&&O_(o,a),t!==-1){let l=Le+t,c=Wu(e,l),u=$g(e[J],l),m=RE(c,u,e),h=Cs(e,u,n,{dehydratedView:m});ws(c,h,a,ca(u,m))}}finally{ce(s)}}else if(o!==void 0){let s=xE(o,a);s!==void 0&&(s[ft]=n)}}var Hg=class{lContainer;$implicit;$index;constructor(n,e,i){this.lContainer=n,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-Tt}};function bi(t,n){return n}var zg=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,i){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=i}};function on(t,n,e,i,r,o,a,s,l,c,u,m,h){Fn("NgControlFlow");let f=se(),g=nt(),v=l!==void 0,E=se(),T=s?a.bind(E[Pt][ft]):a,ne=new zg(v,T);E[Le+t]=ne,gs(f,g,t+1,n,e,i,r,An(g.consts,o),256),v&&gs(f,g,t+2,l,c,u,m,An(g.consts,h),512)}var Ug=class extends Bg{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,i){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-Tt}at(n){return this.getLView(n)[ft].$implicit}attach(n,e){let i=e[rn];this.needsIndexUpdate||=n!==this.length,ws(this.lContainer,e,n,ca(this.templateTNode,i))}detach(n){return this.needsIndexUpdate||=n!==this.length-1,tP(this.lContainer,n)}create(n,e){let i=zl(this.lContainer,this.templateTNode.tView.ssrId),r=Cs(this.hostLView,this.templateTNode,new Hg(this.lContainer,e,n),{dehydratedView:i});return this.operationsCounter?.recordCreate(),r}destroy(n){nm(n[J],n),this.operationsCounter?.recordDestroy()}updateValue(n,e){this.getLView(n)[ft].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n(pr(!0),b_(n[Ne],i,$p()));function iP(t,n,e,i,r){let o=!Xu(n,e);if(pr(o),o)return b_(n[Ne],i,$p());let a=n[rn],s=lm(a,t,n,e);return Fw(a,r)&&Zu(a,r,s.nextSibling),a&&(nw(e)||iw(s))&&$i(e)&&(kD(e),Xw(s)),s}function vx(){ab=iP}function nc(t,n,e){let i=se(),r=i[J],o=t+Le,a=r.firstCreatePass?V_(o,i,8,"ng-container",T_,uu(),n,e):r.data[o];if(S_(a,i,t,"ng-container",yx),ns(a)){let s=i[J];rm(s,i,a),c_(s,a,i)}return e!=null&&Jl(i,a),nc}function ic(){let t=nt(),n=St(),e=M_(n);return t.firstCreatePass&&B_(t,e),ic}function ks(t,n,e){return nc(t,n,e),ic(),ks}var yx=(t,n,e,i,r)=>(pr(!0),Qw(n[Ne],""));function rP(t,n,e,i,r){let o,a=!Xu(n,e);if(pr(a),a)return Qw(n[Ne],"");let s=n[rn],l=lm(s,t,n,e),c=kO(s,r);return Zu(s,r,l),o=cm(c,l),o}function Dx(){yx=rP}function ve(){return se()}function Ot(t,n,e){let i=se(),r=Gi();if(fn(i,r,n)){let o=nt(),a=as();mE(a,i,t,n,i[Ne],e)}return Ot}var oa=void 0;function oP(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var aP=["en",[["a","p"],["AM","PM"],oa],[["AM","PM"],oa,oa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],oa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],oa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",oa,"{1} 'at' {0}",oa],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",oP],rg={};function Pn(t){let n=sP(t),e=NC(n);if(e)return e;let i=n.split("-")[0];if(e=NC(i),e)return e;if(i==="en")return aP;throw new x(701,!1)}function NC(t){return t in rg||(rg[t]=$n.ng&&$n.ng.common&&$n.ng.common.locales&&$n.ng.common.locales[t]),rg[t]}var pt=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(pt||{});function sP(t){return t.toLowerCase().replace(/_/g,"-")}var rc="en-US";var lP=rc;function Cx(t){typeof t=="string"&&(lP=t.toLowerCase().replace(/_/g,"-"))}function I(t,n,e){let i=se(),r=nt(),o=St();return wx(r,i,i[Ne],o,t,n,e),I}function wx(t,n,e,i,r,o,a){let s=!0,l=null;if((i.type&3||a)&&(l??=Xp(i,n,o),FN(i,t,n,a,e,r,o,l)&&(s=!1)),s){let c=i.outputs?.[r],u=i.hostDirectiveOutputs?.[r];if(u&&u.length)for(let m=0;m>17&32767}function uP(t){return(t&2)==2}function mP(t,n){return t&131071|n<<17}function Wg(t){return t|2}function _s(t){return(t&131068)>>2}function og(t,n){return t&-131069|n<<2}function fP(t){return(t&1)===1}function qg(t){return t|1}function hP(t,n,e,i,r,o){let a=o?n.classBindings:n.styleBindings,s=da(a),l=_s(a);t[i]=e;let c=!1,u;if(Array.isArray(e)){let m=e;u=m[1],(u===null||Za(m,u)>0)&&(c=!0)}else u=e;if(r)if(l!==0){let h=da(t[s+1]);t[i+1]=Tu(h,s),h!==0&&(t[h+1]=og(t[h+1],i)),t[s+1]=mP(t[s+1],i)}else t[i+1]=Tu(s,0),s!==0&&(t[s+1]=og(t[s+1],i)),s=i;else t[i+1]=Tu(l,0),s===0?s=i:t[l+1]=og(t[l+1],i),l=i;c&&(t[i+1]=Wg(t[i+1])),FC(t,u,i,!0),FC(t,u,i,!1),pP(n,u,t,i,o),a=Tu(s,l),o?n.classBindings=a:n.styleBindings=a}function pP(t,n,e,i,r){let o=r?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Za(o,n)>=0&&(e[i+1]=qg(e[i+1]))}function FC(t,n,e,i){let r=t[e+1],o=n===null,a=i?da(r):_s(r),s=!1;for(;a!==0&&(s===!1||o);){let l=t[a],c=t[a+1];gP(l,n)&&(s=!0,t[a+1]=i?qg(c):Wg(c)),a=i?da(c):_s(c)}s&&(t[e+1]=i?Wg(r):qg(r))}function gP(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Za(t,n)>=0:!1}var pi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function _P(t){return t.substring(pi.key,pi.keyEnd)}function bP(t){return vP(t),Ex(t,xx(t,0,pi.textEnd))}function Ex(t,n){let e=pi.textEnd;return e===n?-1:(n=pi.keyEnd=yP(t,pi.key=n,e),xx(t,n,e))}function vP(t){pi.key=0,pi.keyEnd=0,pi.value=0,pi.valueEnd=0,pi.textEnd=t.length}function xx(t,n,e){for(;n32;)n++;return n}function no(t,n,e){return Ix(t,n,e,!1),no}function K(t,n){return Ix(t,n,null,!0),K}function yi(t){CP(SP,DP,t,!0)}function DP(t,n){for(let e=bP(n);e>=0;e=Ex(n,e))ru(t,_P(n),!0)}function Ix(t,n,e,i){let r=se(),o=nt(),a=fu(2);if(o.firstUpdatePass&&Sx(o,t,a,i),n!==$t&&fn(r,a,n)){let s=o.data[Wi()];Mx(o,s,r,r[Ne],t,r[a+1]=kP(n,e),i,a)}}function CP(t,n,e,i){let r=nt(),o=fu(2);r.firstUpdatePass&&Sx(r,null,o,i);let a=se();if(e!==$t&&fn(a,o,e)){let s=r.data[Wi()];if(kx(s,i)&&!Tx(r,o)){let l=i?s.classesWithoutHost:s.stylesWithoutHost;l!==null&&(e=Jd(l,e||"")),Gg(r,s,a,e,i)}else MP(r,s,a,a[Ne],a[o+1],a[o+1]=TP(t,n,e),i,o)}}function Tx(t,n){return n>=t.expandoStartIndex}function Sx(t,n,e,i){let r=t.data;if(r[e+1]===null){let o=r[Wi()],a=Tx(t,e);kx(o,i)&&n===null&&!a&&(n=!1),n=wP(r,o,n,i),hP(r,o,n,e,a,i)}}function wP(t,n,e,i){let r=VD(t),o=i?n.residualClasses:n.residualStyles;if(r===null)(i?n.classBindings:n.styleBindings)===0&&(e=ag(null,t,n,e,i),e=Wl(e,n.attrs,i),o=null);else{let a=n.directiveStylingLast;if(a===-1||t[a]!==r)if(e=ag(r,t,n,e,i),o===null){let l=EP(t,n,i);l!==void 0&&Array.isArray(l)&&(l=ag(null,t,n,l[1],i),l=Wl(l,n.attrs,i),xP(t,n,i,l))}else o=IP(t,n,i)}return o!==void 0&&(i?n.residualClasses=o:n.residualStyles=o),e}function EP(t,n,e){let i=e?n.classBindings:n.styleBindings;if(_s(i)!==0)return t[da(i)]}function xP(t,n,e,i){let r=e?n.classBindings:n.styleBindings;t[da(r)]=i}function IP(t,n,e){let i,r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,m=u===null,h=e[r+1];h===$t&&(h=m?Ut:void 0);let f=m?ou(h,i):u===i?h:void 0;if(c&&!qu(f)&&(f=ou(l,i)),qu(f)&&(s=f,a))return s;let g=t[r+1];r=a?da(g):_s(g)}if(n!==null){let l=o?n.residualClasses:n.residualStyles;l!=null&&(s=ou(l,i))}return s}function qu(t){return t!==void 0}function kP(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=$r(gi(t)))),t}function kx(t,n){return(t.flags&(n?8:16))!==0}function L(t,n=""){let e=se(),i=nt(),r=t+Le,o=i.firstCreatePass?Es(i,r,1,n,null):i.data[r],a=Ax(i,e,o,n,t);e[r]=a,bu()&&x_(i,e,a,o),rs(o,!1)}var Ax=(t,n,e,i,r)=>(pr(!0),Kw(n[Ne],i));function AP(t,n,e,i,r){let o=!Xu(n,e);if(pr(o),o)return Kw(n[Ne],i);let a=n[rn];return lm(a,t,n,e)}function Rx(){Ax=AP}function Ox(t,n,e,i=""){return fn(t,Gi(),e)?n+mr(e)+i:$t}function RP(t,n,e,i,r,o=""){let a=OD(),s=NN(t,a,e,r);return fu(2),s?n+mr(e)+i+mr(r)+o:$t}function ie(t){return qe("",t),ie}function qe(t,n,e){let i=se(),r=Ox(i,t,n,e);return r!==$t&&Nx(i,Wi(),r),qe}function io(t,n,e,i,r){let o=se(),a=RP(o,t,n,e,i,r);return a!==$t&&Nx(o,Wi(),a),io}function Nx(t,n,e){let i=Sp(n,t);f1(t[Ne],i,e)}function Yt(t,n,e){Gp(n)&&(n=n());let i=se(),r=Gi();if(fn(i,r,n)){let o=nt(),a=as();uE(a,i,t,n,i[Ne],e)}return Yt}function Lt(t,n){let e=Gp(t);return e&&t.set(n),e}function Kt(t,n){let e=se(),i=nt(),r=St();return wx(i,e,e[Ne],r,t,n),Kt}function pn(t){return fn(se(),Gi(),t)?mr(t):$t}function lb(t,n,e=""){return Ox(se(),t,n,e)}function OP(t,n,e){let i=nt();if(i.firstCreatePass){let r=fi(t);Yg(e,i.data,i.blueprint,r,!0),Yg(n,i.data,i.blueprint,r,!1)}}function Yg(t,n,e,i,r){if(t=It(t),Array.isArray(t))for(let o=0;o>20;if(qo(t)||!t.multi){let f=new la(c,r,P,null),g=lg(l,n,r?u:u+h,m);g===-1?(dg(Lu(s,a),o,l),sg(o,t,n.length),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(f),a.push(f)):(e[g]=f,a[g]=f)}else{let f=lg(l,n,u+h,m),g=lg(l,n,u,u+h),v=f>=0&&e[f],E=g>=0&&e[g];if(r&&!E||!r&&!v){dg(Lu(s,a),o,l);let T=PP(r?FP:NP,e.length,r,i,c,t);!r&&E&&(e[g].providerFactory=T),sg(o,t,n.length,0),n.push(l),s.directiveStart++,s.directiveEnd++,r&&(s.providerIndexes+=1048576),e.push(T),a.push(T)}else{let T=Fx(e[r?g:f],c,!r&&i);sg(o,t,f>-1?f:g,T)}!r&&i&&E&&e[g].componentProviders++}}}function sg(t,n,e,i){let r=qo(n),o=bD(n);if(r||o){let l=(o?It(n.useClass):n).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){let u=c.indexOf(e);u===-1?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function Fx(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function lg(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>OP(i,r?r(t):t,n)}}function Rs(t,n,e){let i=Hp()+t,r=se();return r[i]===$t?jE(r,i,e?n.call(e):n()):ON(r,i)}function gn(t,n,e,i){return VP(se(),Hp(),t,n,e,i)}function LP(t,n){let e=t[n];return e===$t?void 0:e}function VP(t,n,e,i,r,o){let a=n+e;return fn(t,a,r)?jE(t,a+1,o?i.call(o,r):i(r)):LP(t,a+1)}function Cr(t,n){return sm(t,n)}var BP=(()=>{class t{zone=d(F);changeDetectionScheduler=d(en);applicationRef=d(Ct);applicationErrorHandler=d(qi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Px({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new F(Ie(V({},Lx()),{scheduleInRootZone:e})),[{provide:F,useFactory:t},{provide:ji,multi:!0,useFactory:()=>{let i=d(BP,{optional:!0});return()=>i.initialize()}},{provide:ji,multi:!0,useFactory:()=>{let i=d(jP);return()=>{i.initialize()}}},n===!0?{provide:Wp,useValue:!0}:[],{provide:Du,useValue:e??cx},{provide:qi,useFactory:()=>{let i=d(F),r=d(st),o;return a=>{i.runOutsideAngular(()=>{r.destroyed&&!o?setTimeout(()=>{throw a}):(o??=r.get(xn),o.handleError(a))})}}}]}function Lx(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var jP=(()=>{class t{subscription=new ge;initialized=!1;zone=d(F);pendingTasks=d(gr);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{F.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{F.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cb=(()=>{class t{applicationErrorHandler=d(qi);appRef=d(Ct);taskService=d(gr);ngZone=d(F);zonelessEnabled=d(ss);tracing=d(to,{optional:!0});disableScheduling=d(Wp,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ge;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get($u):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(Du,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $l||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let i=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,i=!0;break}case 12:{this.appRef.dirtyFlags|=16,i=!0;break}case 13:{this.appRef.dirtyFlags|=2,i=!0;break}case 11:{i=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(i))return;let r=this.useMicrotaskScheduler?wC:dx;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get($u+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){this.taskService.remove(e),this.applicationErrorHandler(i)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,wC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function db(){return Fn("NgZoneless"),Wr([{provide:en,useExisting:cb},{provide:F,useClass:$l},{provide:ss,useValue:!0},{provide:Du,useValue:!1},[]])}function HP(){return typeof $localize<"u"&&$localize.locale||rc}var fa=new D("",{providedIn:"root",factory:()=>d(fa,{optional:!0,skipSelf:!0})||HP()});var oc=class{destroyed=!1;listeners=null;errorHandler=d(xn,{optional:!0});destroyRef=d(On);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new x(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?.indexOf(n);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed){console.warn(Bi(953,!1));return}if(this.listeners===null)return;let e=ce(null);try{for(let i of this.listeners)try{i(n)}catch(r){this.errorHandler?.handleError(r)}}finally{ce(e)}}};function Yn(t){return tD(t)}function ke(t,n){return gl(t,n?.equal)}var ub=class{[vt];constructor(n){this[vt]=n}destroy(){this[vt].destroy()}};function ro(t,n){let e=n?.injector??d(U),i=n?.manualCleanup!==!0?e.get(On):null,r,o=e.get(ia,null,{optional:!0}),a=e.get(en);return o!==null?(r=$P(o.view,a,t),i instanceof Tl&&i._lView===o.view&&(i=null)):r=GP(t,e.get(Fl),a),r.injector=e,i!==null&&(r.onDestroyFn=i.onDestroy(()=>r.destroy())),new ub(r)}var Vx=Ie(V({},nD),{cleanupFns:void 0,zone:null,onDestroyFn:ra,run(){let t=os(!1);try{iD(this)}finally{os(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=ce(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],ce(t)}}}),zP=Ie(V({},Vx),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){Hr(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),UP=Ie(V({},Vx),{consumerMarkedDirty(){this.view[ue]|=8192,Kr(this.view),this.notifier.notify(13)},destroy(){Hr(this),this.onDestroyFn(),this.cleanup(),this.view[hr]?.delete(this)}});function $P(t,n,e){let i=Object.create(UP);return i.view=t,i.zone=typeof Zone<"u"?Zone.current:null,i.notifier=n,i.fn=Bx(i,e),t[hr]??=new Set,t[hr].add(i),i.consumerMarkedDirty(i),i}function GP(t,n,e){let i=Object.create(zP);return i.fn=Bx(i,t),i.scheduler=n,i.notifier=e,i.zone=typeof Zone<"u"?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function Bx(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}var gb={JSACTION:"__jsaction",OWNER:"__owner"},Ux={};function WP(t){return t[gb.JSACTION]}function jx(t,n){t[gb.JSACTION]=n}function qP(t){return Ux[t]}function YP(t,n){Ux[t]=n}var ae={AUXCLICK:"auxclick",CHANGE:"change",CLICK:"click",CLICKMOD:"clickmod",CLICKONLY:"clickonly",DBLCLICK:"dblclick",FOCUS:"focus",FOCUSIN:"focusin",BLUR:"blur",FOCUSOUT:"focusout",SUBMIT:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEUP:"mouseup",MOUSEDOWN:"mousedown",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSEMOVE:"mousemove",POINTERUP:"pointerup",POINTERDOWN:"pointerdown",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERMOVE:"pointermove",POINTERCANCEL:"pointercancel",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",ERROR:"error",LOAD:"load",UNLOAD:"unload",TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",INPUT:"input",SCROLL:"scroll",TOGGLE:"toggle",CUSTOM:"_custom"},KP=[ae.MOUSEENTER,ae.MOUSELEAVE,"pointerenter","pointerleave"],L6=[ae.CLICK,ae.DBLCLICK,ae.FOCUSIN,ae.FOCUSOUT,ae.KEYDOWN,ae.KEYUP,ae.KEYPRESS,ae.MOUSEOVER,ae.MOUSEOUT,ae.SUBMIT,ae.TOUCHSTART,ae.TOUCHEND,ae.TOUCHMOVE,"touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"],QP=[ae.FOCUS,ae.BLUR,ae.ERROR,ae.LOAD,ae.TOGGLE],_b=t=>QP.indexOf(t)>=0;function ZP(t){return t===ae.MOUSEENTER?ae.MOUSEOVER:t===ae.MOUSELEAVE?ae.MOUSEOUT:t===ae.POINTERENTER?ae.POINTEROVER:t===ae.POINTERLEAVE?ae.POINTEROUT:t}function XP(t,n,e,i){let r=!1;_b(n)&&(r=!0);let o=typeof i=="boolean"?{capture:r,passive:i}:r;return t.addEventListener(n,e,o),{eventType:n,handler:e,capture:r,passive:i}}function JP(t,n){if(t.removeEventListener){let e=typeof n.passive=="boolean"?{capture:n.capture}:n.capture;t.removeEventListener(n.eventType,n.handler,e)}else t.detachEvent&&t.detachEvent(`on${n.eventType}`,n.handler)}function eL(t){t.preventDefault?t.preventDefault():t.returnValue=!1}var Hx=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function tL(t){return t.which===2||t.which==null&&t.button===4}function nL(t){return Hx&&t.metaKey||!Hx&&t.ctrlKey||tL(t)||t.shiftKey}function iL(t,n,e){let i=t.relatedTarget;return(t.type===ae.MOUSEOVER&&n===ae.MOUSEENTER||t.type===ae.MOUSEOUT&&n===ae.MOUSELEAVE||t.type===ae.POINTEROVER&&n===ae.POINTERENTER||t.type===ae.POINTEROUT&&n===ae.POINTERLEAVE)&&(!i||i!==e&&!e.contains(i))}function rL(t,n){let e={};for(let i in t){if(i==="srcElement"||i==="target")continue;let r=i,o=t[r];typeof o!="function"&&(e[r]=o)}return t.type===ae.MOUSEOVER?e.type=ae.MOUSEENTER:t.type===ae.MOUSEOUT?e.type=ae.MOUSELEAVE:t.type===ae.POINTEROVER?e.type=ae.POINTERENTER:e.type=ae.POINTERLEAVE,e.target=e.srcElement=n,e.bubbles=!1,e._originalEvent=t,e}var oL=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent),bm=class{element;handlerInfos=[];constructor(n){this.element=n}addEventListener(n,e,i){oL&&(this.element.style.cursor="pointer"),this.handlerInfos.push(XP(this.element,n,e(this.element),i))}cleanUp(){for(let n=0;n{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}};function pL(t,n){return t.tagName==="A"&&(n.getEventType()===ae.CLICK||n.getEventType()===ae.CLICKMOD)}var eI=Symbol.for("propagationStopped"),vb={REPLAY:101};var gL="`preventDefault` called during event replay.";var _L="`composedPath` called during event replay.",vm=class{dispatchDelegate;clickModSupport;actionResolver;dispatcher;constructor(n,e=!0){this.dispatchDelegate=n,this.clickModSupport=e,this.actionResolver=new hb({clickModSupport:e}),this.dispatcher=new pb(i=>{this.dispatchToDelegate(i)},{actionResolver:this.actionResolver})}dispatch(n){this.dispatcher.dispatch(n)}dispatchToDelegate(n){for(n.getIsReplay()&&yL(n),bL(n);n.getAction();){if(DL(n),_b(n.getEventType())&&n.getAction().element!==n.getTargetElement()||(this.dispatchDelegate(n.getEvent(),n.getAction().name),vL(n)))return;this.actionResolver.resolveParentAction(n.eventInfo)}}};function bL(t){let n=t.getEvent(),e=t.getEvent().stopPropagation.bind(n),i=()=>{n[eI]=!0,e()};ha(n,"stopPropagation",i),ha(n,"stopImmediatePropagation",i)}function vL(t){return!!t.getEvent()[eI]}function yL(t){let n=t.getEvent(),e=t.getTargetElement(),i=n.preventDefault.bind(n);ha(n,"target",e),ha(n,"eventPhase",vb.REPLAY),ha(n,"preventDefault",()=>{throw i(),new Error(gL+"")}),ha(n,"composedPath",()=>{throw new Error(_L+"")})}function DL(t){let n=t.getEvent(),e=t.getAction()?.element;e&&ha(n,"currentTarget",e,{configurable:!0})}function ha(t,n,e,{configurable:i=!1}={}){Object.defineProperty(t,n,{value:e,configurable:i})}function tI(t,n){t.ecrd(e=>{n.dispatch(e)},Jx.I_AM_THE_JSACTION_FRAMEWORK)}function CL(t){return t?.q??[]}function wL(t){t&&(zx(t.c,t.et,t.h),zx(t.c,t.etc,t.h,!0))}function zx(t,n,e,i){for(let r=0;r{class t{static MOUSE_SPECIAL_SUPPORT=EL;containerManager;eventHandlers={};browserEventTypeToExtraEventTypes={};dispatcher=null;queuedEventInfos=[];constructor(e){this.containerManager=e}handleEvent(e,i,r){let o=uL(e,i,i.target,r,Date.now());this.handleEventInfo(o)}handleEventInfo(e){if(!this.dispatcher){Kx(e,!0),this.queuedEventInfos?.push(e);return}this.dispatcher(e)}addEvent(e,i,r){if(e in this.eventHandlers||!this.containerManager||!t.MOUSE_SPECIAL_SUPPORT&&KP.indexOf(e)>=0)return;let o=(s,l,c)=>{this.handleEvent(s,l,c)};this.eventHandlers[e]=o;let a=ZP(i||e);if(a!==e){let s=this.browserEventTypeToExtraEventTypes[a]||[];s.push(e),this.browserEventTypeToExtraEventTypes[a]=s}this.containerManager.addEventListener(a,s=>l=>{o(e,l,s)},r)}replayEarlyEvents(e=window._ejsa){e&&(this.replayEarlyEventInfos(e.q),wL(e),delete window._ejsa)}replayEarlyEventInfos(e){for(let i=0;iXg(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},zL=new D("");zL.__NG_ELEMENT_ID__=t=>{let n=St();if(n===null)throw new x(204,!1);if(n.type&2)return n.value;if(t&8)return null;throw new x(204,!1)};function Di(t){return new oc}function rI(t,n){return pI(t,n)}function UL(t){return pI(Em,t)}var Vt=(rI.required=UL,rI);function oI(t,n){return $_(n)}function $L(t,n){return G_(n)}var Zi=(oI.required=$L,oI);function aI(t,n){return $_(n)}function GL(t,n){return G_(n)}var gI=(aI.required=GL,aI);function _I(t,n){let e=Object.create(hI),i=new oc;e.value=t;function r(){return Br(e),sI(e.value),e.value}return r[vt]=e,r.asReadonly=yu.bind(r),r.set=o=>{e.equal(e.value,o)||(Fo(e,o),i.emit(o))},r.update=o=>{sI(e.value),r.set(o(e.value))},r.subscribe=i.subscribe.bind(i),r.destroyRef=i.destroyRef,r}function sI(t){if(t===Em)throw new x(952,!1)}function lI(t,n){return _I(t,n)}function WL(t){return _I(Em,t)}var oe=(lI.required=WL,lI);var Cb=new D(""),qL=new D("");function ac(t){return!t.moduleRef}function YL(t){let n=ac(t)?t.r3Injector:t.moduleRef.injector,e=n.get(F);return e.run(()=>{ac(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let i=n.get(qi),r;if(e.runOutsideAngular(()=>{r=e.onError.subscribe({next:i})}),ac(t)){let o=()=>n.destroy(),a=t.platformInjector.get(Cb);a.add(o),n.onDestroy(()=>{r.unsubscribe(),a.delete(o)})}else{let o=()=>t.moduleRef.destroy(),a=t.platformInjector.get(Cb);a.add(o),t.moduleRef.onDestroy(()=>{Ll(t.allPlatformModules,t.moduleRef),r.unsubscribe(),a.delete(o)})}return QL(i,e,()=>{let o=n.get(gr),a=o.add(),s=n.get(nb);return s.runInitializers(),s.donePromise.then(()=>{let l=n.get(fa,rc);if(Cx(l||rc),!n.get(qL,!0))return ac(t)?n.get(Ct):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(ac(t)){let u=n.get(Ct);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return KL?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void o.remove(a))})})}var KL;function QL(t,n,e){try{let i=e();return Ts(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t(i)),i}}var Dm=null;function ZL(t=[],n){return U.create({name:n,providers:[{provide:kl,useValue:"platform"},{provide:Cb,useValue:new Set([()=>Dm=null])},...t]})}function XL(t=[]){if(Dm)return Dm;let n=ZL(t);return Dm=n,px(),JL(n),n}function JL(t){let n=t.get(Yu,null);Ja(t,()=>{n?.forEach(e=>e())})}var Ae=(()=>{class t{static __NG_ELEMENT_ID__=eV}return t})();function eV(t){return tV(St(),se(),(t&16)===16)}function tV(t,n,e){if($i(t)&&!e){let i=Wn(t.index,n);return new Zr(i,i)}else if(t.type&175){let i=n[Pt];return new Zr(i,n)}return null}var wb=class{constructor(){}supports(n){return j_(n)}create(n){return new Eb(n)}},nV=(t,n)=>n,Eb=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||nV}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){let a=!i||e&&e.currentIndex{a=this._trackByFn(r,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,r),i=!0):(i&&(e=this._verifyReinsertion(e,s,a,r)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):(n=this._linkedRecords===null?null:this._linkedRecords.get(i,r),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new xb(e,i),o,r)),n}_verifyReinsertion(n,e,i,r){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return o!==null?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let r=n._prevRemoved,o=n._nextRemoved;return r===null?this._removalsHead=o:r._nextRemoved=o,o===null?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){let r=e===null?this._itHead:e._next;return n._next=r,n._prev=e,r===null?this._itTail=n:r._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new wm),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,i=n._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new wm),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},xb=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},Ib=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){let e=n._prevDup,i=n._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}},wm=class{map=new Map;put(n){let e=n.trackById,i=this.map.get(e);i||(i=new Ib,this.map.set(e,i)),i.add(n)}get(n,e){let i=n,r=this.map.get(i);return r?r.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function cI(t,n,e){let i=t.previousIndex;if(i===null)return i;let r=0;return e&&i{class t{factories;static \u0275prov=w({token:t,providedIn:"root",factory:dI});constructor(e){this.factories=e}static create(e,i){if(i!=null){let r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let i=d(t,{optional:!0,skipSelf:!0});return t.create(e,i||dI())}}}find(e){let i=this.factories.find(r=>r.supports(e));if(i!=null)return i;throw new x(901,!1)}}return t})();function bI(t){Ve(8);try{let{rootComponent:n,appProviders:e,platformProviders:i}=t,r=XL(i),o=[Px({}),{provide:en,useExisting:cb},GD,...e||[]],a=new Ul({providers:o,parent:r,debugName:"",runEnvironmentInitializers:!1});return YL({r3Injector:a.injector,platformInjector:r,rootComponent:n})}catch(n){return Promise.reject(n)}finally{Ve(9)}}var ym=new WeakSet,uI="",Cm=[];function mI(t){return t.get(r_,vw)}function vI(){let t=[{provide:r_,useFactory:()=>{let n=!0;{let e=d(hn);n=!!window._ejsas?.[e]}return n&&Fn("NgEventReplay"),n}}];return t.push({provide:ji,useValue:()=>{let n=d(Ct),{injector:e}=n;if(!ym.has(n)){let i=d(o_);if(mI(e)){Tw();let r=e.get(hn),o=xw(r,(a,s,l)=>{a.nodeType===Node.ELEMENT_NODE&&(Dw(a,s,l),Cw(a,i))});n.onDestroy(o)}}},multi:!0},{provide:Ss,useFactory:()=>{let n=d(Ct),{injector:e}=n;return()=>{if(!mI(e)||ym.has(n))return;ym.add(n);let i=e.get(hn);n.onDestroy(()=>{ym.delete(n),yb(i)}),n.whenStable().then(()=>{if(n.destroyed)return;let r=e.get(Ew);iV(r,e);let o=e.get(o_);o.get(uI)?.forEach(ww),o.delete(uI);let a=r.instance;Nw(e)?n.onDestroy(()=>a.cleanUp()):a.cleanUp()})}},multi:!0}),t}var iV=(t,n)=>{let e=n.get(hn),i=window._ejsas[e],r=t.instance=new nI(new bm(i.c));for(let s of i.et)r.addEvent(s);for(let s of i.etc)r.addEvent(s);let o=iI(e);r.replayEarlyEventInfos(o),yb(e);let a=new vm(s=>{rV(n,s,s.currentTarget)});tI(r,a)};function rV(t,n,e){let i=(e&&e.getAttribute(Kl))??"";/d\d+/.test(i)?oV(i,t,n,e):n.eventPhase===vb.REPLAY&&a_(n,e)}function oV(t,n,e,i){Cm.push({event:e,currentTarget:i}),bx(n,t,aV)}function aV(t){let n=[...Cm],e=new Set(t);Cm=[];for(let{event:i,currentTarget:r}of n){let o=r.getAttribute(Kl);e.has(o)?a_(i,r):Cm.push({event:i,currentTarget:r})}}var fI=!1;function sV(){fI||(fI=!0,Aw(),vx(),Rx(),Dx(),lx(),qE(),AE(),dE())}function lV(t){return t.whenStable()}function yI(){let t=[{provide:Yl,useFactory:()=>{let n=!0;return n=!!d(ua,{optional:!0})?.get(s_,null),n&&Fn("NgHydration"),n}},{provide:ji,useValue:()=>{TE(!1),d(Yl)&&(Lw(ys()),sV())},multi:!0}];return t.push({provide:i_,useFactory:()=>d(Yl)},{provide:Ss,useFactory:()=>{if(d(Yl)){let n=d(Ct);return()=>{lV(n).then(()=>{n.destroyed||P_(n)})}}return()=>{}},multi:!0}),Wr(t)}function Q(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function sn(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var Db=Symbol("NOT_SET"),DI=new Set,cV=Ie(V({},_l),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Db,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(Br(c),c.value),c.signal[vt]=c,c.registerCleanupFn=u=>(c.cleanup??=new Set).add(u),this.nodes[s]=c,this.hooks[s]=u=>c.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??DI)e()}finally{Hr(n)}}};function CI(t,n){let e=n?.injector??d(U),i=e.get(en),r=e.get(hm),o=e.get(to,null,{optional:!0});r.impl??=e.get(J_);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(ia,null,{optional:!0}),l=new Tb(r.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,i,e,o?.snapshot(null));return r.impl.register(l),l}function xm(t,n){let e=fr(t),i=n.elementInjector||Xa();return new ps(e).create(i,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}var xI=null;function Qn(){return xI}function Sb(t){xI??=t}var lc=class{},Mb=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:()=>d(II),providedIn:"platform"})}return t})();var II=(()=>{class t extends Mb{_location;_history;_doc=d(me);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qn().getBaseHref(this._doc)}onPopState(e){let i=Qn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){let i=Qn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,i,r){this._history.pushState(e,i,r)}replaceState(e,i,r){this._history.replaceState(e,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function TI(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function wI(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function ao(t){return t&&t[0]!=="?"?`?${t}`:t}var Im=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:()=>d(MI),providedIn:"root"})}return t})(),SI=new D(""),MI=(()=>{class t extends Im{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??d(me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return TI(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+ao(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){let a=this.prepareExternalUrl(r+ao(o));this._platformLocation.pushState(e,i,a)}replaceState(e,i,r,o){let a=this.prepareExternalUrl(r+ao(o));this._platformLocation.replaceState(e,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(i){return new(i||t)(X(Mb),X(SI,8))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Tm=(()=>{class t{_subject=new S;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=mV(wI(EI(i))),this._locationStrategy.onPopState(r=>{this._subject.next({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+ao(i))}normalize(e){return t.stripTrailingSlash(uV(this._basePath,EI(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ao(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+ao(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i??void 0,complete:r??void 0})}static normalizeQueryParams=ao;static joinWithSlash=TI;static stripTrailingSlash=wI;static \u0275fac=function(i){return new(i||t)(X(Im))};static \u0275prov=w({token:t,factory:()=>dV(),providedIn:"root"})}return t})();function dV(){return new Tm(X(Im))}function uV(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function EI(t){return t.replace(/\/index.html$/,"")}function mV(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Qt=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Qt||{}),Ye=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(Ye||{}),_n=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(_n||{}),xr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function OI(t){return Pn(t)[pt.LocaleId]}function NI(t,n,e){let i=Pn(t),r=[i[pt.DayPeriodsFormat],i[pt.DayPeriodsStandalone]],o=Zn(r,n);return Zn(o,e)}function FI(t,n,e){let i=Pn(t),r=[i[pt.DaysFormat],i[pt.DaysStandalone]],o=Zn(r,n);return Zn(o,e)}function PI(t,n,e){let i=Pn(t),r=[i[pt.MonthsFormat],i[pt.MonthsStandalone]],o=Zn(r,n);return Zn(o,e)}function LI(t,n){let i=Pn(t)[pt.Eras];return Zn(i,n)}function cc(t,n){let e=Pn(t);return Zn(e[pt.DateFormat],n)}function dc(t,n){let e=Pn(t);return Zn(e[pt.TimeFormat],n)}function uc(t,n){let i=Pn(t)[pt.DateTimeFormat];return Zn(i,n)}function mc(t,n){let e=Pn(t),i=e[pt.NumberSymbols][n];if(typeof i>"u"){if(n===xr.CurrencyDecimal)return e[pt.NumberSymbols][xr.Decimal];if(n===xr.CurrencyGroup)return e[pt.NumberSymbols][xr.Group]}return i}function VI(t){if(!t[pt.ExtraData])throw new x(2303,!1)}function BI(t){let n=Pn(t);return VI(n),(n[pt.ExtraData][2]||[]).map(i=>typeof i=="string"?kb(i):[kb(i[0]),kb(i[1])])}function jI(t,n,e){let i=Pn(t);VI(i);let r=[i[pt.ExtraData][0],i[pt.ExtraData][1]],o=Zn(r,n)||[];return Zn(o,e)||[]}function Zn(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new x(2304,!1)}function kb(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}var fV=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Sm={},hV=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function ln(t,n,e,i){let r=wV(t);n=Er(e,n)||n;let a=[],s;for(;n;)if(s=hV.exec(n),s){a=a.concat(s.slice(1));let u=a.pop();if(!u)break;n=u}else{a.push(n);break}let l=r.getTimezoneOffset();i&&(l=zI(i,l),r=CV(r,i));let c="";return a.forEach(u=>{let m=yV(u);c+=m?m(r,e,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Om(t,n,e){let i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function Er(t,n){let e=OI(t);if(Sm[e]??={},Sm[e][n])return Sm[e][n];let i="";switch(n){case"shortDate":i=cc(t,_n.Short);break;case"mediumDate":i=cc(t,_n.Medium);break;case"longDate":i=cc(t,_n.Long);break;case"fullDate":i=cc(t,_n.Full);break;case"shortTime":i=dc(t,_n.Short);break;case"mediumTime":i=dc(t,_n.Medium);break;case"longTime":i=dc(t,_n.Long);break;case"fullTime":i=dc(t,_n.Full);break;case"short":let r=Er(t,"shortTime"),o=Er(t,"shortDate");i=Mm(uc(t,_n.Short),[r,o]);break;case"medium":let a=Er(t,"mediumTime"),s=Er(t,"mediumDate");i=Mm(uc(t,_n.Medium),[a,s]);break;case"long":let l=Er(t,"longTime"),c=Er(t,"longDate");i=Mm(uc(t,_n.Long),[l,c]);break;case"full":let u=Er(t,"fullTime"),m=Er(t,"fullDate");i=Mm(uc(t,_n.Full),[u,m]);break}return i&&(Sm[e][n]=i),i}function Mm(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return n!=null&&i in n?n[i]:e})),t}function Ci(t,n,e="-",i,r){let o="";(t<0||r&&t<=0)&&(r?t=-t+1:(t=-t,o=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return pV(s,n);let l=mc(a,xr.MinusSign);return Ci(s,n,l,i,r)}}function gV(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new x(2301,!1)}}function Xe(t,n,e=Qt.Format,i=!1){return function(r,o){return _V(r,o,t,n,e,i)}}function _V(t,n,e,i,r,o){switch(e){case 2:return PI(n,r,i)[t.getMonth()];case 1:return FI(n,r,i)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(o){let c=BI(n),u=jI(n,r,i),m=c.findIndex(h=>{if(Array.isArray(h)){let[f,g]=h,v=a>=f.hours&&s>=f.minutes,E=a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case 0:return(r>=0?"+":"")+Ci(a,2,o)+Ci(Math.abs(r%60),2,o);case 1:return"GMT"+(r>=0?"+":"")+Ci(a,1,o);case 2:return"GMT"+(r>=0?"+":"")+Ci(a,2,o)+":"+Ci(Math.abs(r%60),2,o);case 3:return i===0?"Z":(r>=0?"+":"")+Ci(a,2,o)+":"+Ci(Math.abs(r%60),2,o);default:throw new x(2302,!1)}}}var bV=0,Rm=4;function vV(t){let n=Om(t,bV,1).getDay();return Om(t,0,1+(n<=Rm?Rm:Rm+7)-n)}function HI(t){let n=t.getDay(),e=n===0?-3:Rm-n;return Om(t.getFullYear(),t.getMonth(),t.getDate()+e)}function Ab(t,n=!1){return function(e,i){let r;if(n){let o=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();r=1+Math.floor((a+o)/7)}else{let o=HI(e),a=vV(o.getFullYear()),s=o.getTime()-a.getTime();r=1+Math.round(s/6048e5)}return Ci(r,t,mc(i,xr.MinusSign))}}function Am(t,n=!1){return function(e,i){let o=HI(e).getFullYear();return Ci(o,t,mc(i,xr.MinusSign),n)}}var Rb={};function yV(t){if(Rb[t])return Rb[t];let n;switch(t){case"G":case"GG":case"GGG":n=Xe(3,Ye.Abbreviated);break;case"GGGG":n=Xe(3,Ye.Wide);break;case"GGGGG":n=Xe(3,Ye.Narrow);break;case"y":n=wt(0,1,0,!1,!0);break;case"yy":n=wt(0,2,0,!0,!0);break;case"yyy":n=wt(0,3,0,!1,!0);break;case"yyyy":n=wt(0,4,0,!1,!0);break;case"Y":n=Am(1);break;case"YY":n=Am(2,!0);break;case"YYY":n=Am(3);break;case"YYYY":n=Am(4);break;case"M":case"L":n=wt(1,1,1);break;case"MM":case"LL":n=wt(1,2,1);break;case"MMM":n=Xe(2,Ye.Abbreviated);break;case"MMMM":n=Xe(2,Ye.Wide);break;case"MMMMM":n=Xe(2,Ye.Narrow);break;case"LLL":n=Xe(2,Ye.Abbreviated,Qt.Standalone);break;case"LLLL":n=Xe(2,Ye.Wide,Qt.Standalone);break;case"LLLLL":n=Xe(2,Ye.Narrow,Qt.Standalone);break;case"w":n=Ab(1);break;case"ww":n=Ab(2);break;case"W":n=Ab(1,!0);break;case"d":n=wt(2,1);break;case"dd":n=wt(2,2);break;case"c":case"cc":n=wt(7,1);break;case"ccc":n=Xe(1,Ye.Abbreviated,Qt.Standalone);break;case"cccc":n=Xe(1,Ye.Wide,Qt.Standalone);break;case"ccccc":n=Xe(1,Ye.Narrow,Qt.Standalone);break;case"cccccc":n=Xe(1,Ye.Short,Qt.Standalone);break;case"E":case"EE":case"EEE":n=Xe(1,Ye.Abbreviated);break;case"EEEE":n=Xe(1,Ye.Wide);break;case"EEEEE":n=Xe(1,Ye.Narrow);break;case"EEEEEE":n=Xe(1,Ye.Short);break;case"a":case"aa":case"aaa":n=Xe(0,Ye.Abbreviated);break;case"aaaa":n=Xe(0,Ye.Wide);break;case"aaaaa":n=Xe(0,Ye.Narrow);break;case"b":case"bb":case"bbb":n=Xe(0,Ye.Abbreviated,Qt.Standalone,!0);break;case"bbbb":n=Xe(0,Ye.Wide,Qt.Standalone,!0);break;case"bbbbb":n=Xe(0,Ye.Narrow,Qt.Standalone,!0);break;case"B":case"BB":case"BBB":n=Xe(0,Ye.Abbreviated,Qt.Format,!0);break;case"BBBB":n=Xe(0,Ye.Wide,Qt.Format,!0);break;case"BBBBB":n=Xe(0,Ye.Narrow,Qt.Format,!0);break;case"h":n=wt(3,1,-12);break;case"hh":n=wt(3,2,-12);break;case"H":n=wt(3,1);break;case"HH":n=wt(3,2);break;case"m":n=wt(4,1);break;case"mm":n=wt(4,2);break;case"s":n=wt(5,1);break;case"ss":n=wt(5,2);break;case"S":n=wt(6,1);break;case"SS":n=wt(6,2);break;case"SSS":n=wt(6,3);break;case"Z":case"ZZ":case"ZZZ":n=km(0);break;case"ZZZZZ":n=km(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=km(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=km(2);break;default:return null}return Rb[t]=n,n}function zI(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function DV(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function CV(t,n,e){let r=t.getTimezoneOffset(),o=zI(n,r);return DV(t,-1*(o-r))}function wV(t){if(kI(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[r,o=1,a=1]=t.split("-").map(s=>+s);return Om(r,o-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(fV))return EV(i)}let n=new Date(t);if(!kI(n))throw new x(2302,!1);return n}function EV(t){let n=new Date(0),e=0,i=0,r=t[8]?n.setUTCFullYear:n.setFullYear,o=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(n,a,s,l,c),n}function kI(t){return t instanceof Date&&!isNaN(t.valueOf())}var Ob=/\s+/,AI=[],wi=(()=>{class t{_ngEl;_renderer;initialClasses=AI;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(Ob):AI}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Ob):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(Ob).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static \u0275fac=function(i){return new(i||t)(P(N),P(Pe))};static \u0275dir=A({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Nb=(()=>{class t{_viewContainer;_context=new Nm;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,i){this._viewContainer=e,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){RI(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){RI(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,i){return!0}static \u0275fac=function(i){return new(i||t)(P(ht),P(Rt))};static \u0275dir=A({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Nm=class{$implicit=null;ngIf=null};function RI(t,n){if(t&&!t.createEmbeddedView)throw new x(2020,!1)}var fc=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,r):!1,get:(e,i,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,r)}})}static \u0275fac=function(i){return new(i||t)(P(ht))};static \u0275dir=A({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Be]})}return t})();function xV(t,n){return new x(2100,!1)}var IV="mediumDate",UI=new D(""),$I=new D(""),Ir=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,o){if(e==null||e===""||e!==e)return null;try{let a=i??this.defaultOptions?.dateFormat??IV,s=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return ln(e,a,o||this.locale,s)}catch(a){throw xV(t,a.message)}}static \u0275fac=function(i){return new(i||t)(P(fa,16),P(UI,24),P($I,24))};static \u0275pipe=q_({name:"date",type:t,pure:!0})}return t})();var so=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();function hc(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let i=e.indexOf("="),[r,o]=i==-1?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}var pa=class{};var Fb="browser";function Fm(t){return t===Fb}var Lm=new D(""),Hb=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,i,r,o){return this._findPluginFor(i).addEventListener(e,i,r,o)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(o=>o.supports(e)),!i)throw new x(5101,!1);return this._eventNameToPlugin.set(e,i),i}static \u0275fac=function(i){return new(i||t)(X(Lm),X(F))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),pc=class{_doc;constructor(n){this._doc=n}manager},Lb="ng-app-id";function GI(t){for(let n of t)n.remove()}function WI(t,n){let e=n.createElement("style");return e.textContent=t,e}function SV(t,n,e,i){let r=t.head?.querySelectorAll(`style[${Lb}="${n}"],link[${Lb}="${n}"]`);if(r)for(let o of r)o.removeAttribute(Lb),o instanceof HTMLLinkElement?i.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&e.set(o.textContent,{usage:0,elements:[o]})}function Bb(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var zb=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,r,o={}){this.doc=e,this.appId=i,this.nonce=r,SV(e,i,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,i){for(let r of e)this.addUsage(r,this.inline,WI);i?.forEach(r=>this.addUsage(r,this.external,Bb))}removeStyles(e,i){for(let r of e)this.removeUsage(r,this.inline);i?.forEach(r=>this.removeUsage(r,this.external))}addUsage(e,i,r){let o=i.get(e);o?o.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,r(e,this.doc)))})}removeUsage(e,i){let r=i.get(e);r&&(r.usage--,r.usage<=0&&(GI(r.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])GI(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[i,{elements:r}]of this.inline)r.push(this.addElement(e,WI(i,this.doc)));for(let[i,{elements:r}]of this.external)r.push(this.addElement(e,Bb(i,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,i){return this.nonce&&i.setAttribute("nonce",this.nonce),e.appendChild(i)}static \u0275fac=function(i){return new(i||t)(X(me),X(hn),X(Ds,8),X(qn))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),Vb={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ub=/%COMP%/g;var YI="%COMP%",MV=`_nghost-${YI}`,kV=`_ngcontent-${YI}`,AV=!0,RV=new D("",{providedIn:"root",factory:()=>AV});function OV(t){return kV.replace(Ub,t)}function NV(t){return MV.replace(Ub,t)}function KI(t,n){return n.map(e=>e.replace(Ub,t))}var bc=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(e,i,r,o,a,s,l,c=null,u,m,h=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=s,this.ngZone=l,this.nonce=c,this.animationDisabled=u,this.maxAnimationTimeout=m,this.tracingService=h,this.platformIsServer=!1,this.defaultRenderer=new gc(e,a,l,this.platformIsServer,this.tracingService,this.registry=vu(),this.maxAnimationTimeout)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let r=this.getOrCreateRenderer(e,i);return r instanceof Pm?r.applyToHost(e):r instanceof _c&&r.applyStyles(),r}getOrCreateRenderer(e,i){let r=this.rendererByCompId,o=r.get(i.id);if(!o){let a=this.doc,s=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(i.encapsulation){case br.Emulated:o=new Pm(l,c,i,this.appId,u,a,s,m,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case br.ShadowDom:return new jb(l,c,e,i,a,s,this.nonce,m,h,this.registry,this.maxAnimationTimeout);default:o=new _c(l,c,i,u,a,s,m,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(i){return new(i||t)(X(Hb),X(zb),X(hn),X(RV),X(me),X(qn),X(F),X(Ds),X(ib),X(rb),X(to,8))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),gc=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,i,r,o,a,s){this.eventManager=n,this.doc=e,this.ngZone=i,this.platformIsServer=r,this.tracingService=o,this.registry=a,this.maxAnimationTimeout=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Vb[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(qI(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(qI(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){let{elements:i}=this.registry;if(i){i.animate(e,()=>e.remove(),this.maxAnimationTimeout);return}e.remove()}selectRootElement(n,e){let i=typeof n=="string"?this.doc.querySelector(n):n;if(!i)throw new x(-5104,!1);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;let o=Vb[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){let r=Vb[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Qi.DashCase|Qi.Important)?n.style.setProperty(e,i,r&Qi.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Qi.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n!=null&&(n[e]=i)}setValue(n,e){n.nodeValue=e}listen(n,e,i,r){if(typeof n=="string"&&(n=Qn().getGlobalEventTarget(this.doc,n),!n))throw new x(5102,!1);let o=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(n,e,o)),this.eventManager.addEventListener(n,e,o,r)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function qI(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var jb=class extends gc{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,i,r,o,a,s,l,c,u,m){super(n,o,a,l,c,u,m),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=r.styles;h=KI(r.id,h);for(let g of h){let v=document.createElement("style");s&&v.setAttribute("nonce",s),v.textContent=g,this.shadowRoot.appendChild(v)}let f=r.getExternalStyles?.();if(f)for(let g of f){let v=Bb(g,o);s&&v.setAttribute("nonce",s),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},_c=class extends gc{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(n,e,i,r,o,a,s,l,c,u,m,h){super(n,o,a,s,l,c,m),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this._animationDisabled=u;let f=i.styles;this.styles=h?KI(h,f):f,this.styleUrls=i.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},Pm=class extends _c{contentAttr;hostAttr;constructor(n,e,i,r,o,a,s,l,c,u,m,h){let f=r+"-"+i.id;super(n,e,i,o,a,s,l,c,u,m,h,f),this.contentAttr=OV(f),this.hostAttr=NV(f)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}};var Vm=class t extends lc{supportsDOMEvents=!0;static makeCurrent(){Sb(new t)}onAndCancel(n,e,i,r){return n.addEventListener(e,i,r),()=>{n.removeEventListener(e,i,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=FV();return e==null?null:PV(e)}resetBaseElement(){vc=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return hc(document.cookie,n)}},vc=null;function FV(){return vc=vc||document.head.querySelector("base"),vc?vc.getAttribute("href"):null}function PV(t){return new URL(t,document.baseURI).pathname}var LV=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),ZI=(()=>{class t extends pc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r,o){return e.addEventListener(i,r,o),()=>this.removeEventListener(e,i,r,o)}removeEventListener(e,i,r,o){return e.removeEventListener(i,r,o)}static \u0275fac=function(i){return new(i||t)(X(me))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),QI=["alt","control","meta","shift"],VV={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},BV={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},XI=(()=>{class t extends pc{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,i,r,o){let a=t.parseEventName(i),s=t.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qn().onAndCancel(e,a.domEventName,s,o))}static parseEventName(e){let i=e.toLowerCase().split("."),r=i.shift();if(i.length===0||!(r==="keydown"||r==="keyup"))return null;let o=t._normalizeKey(i.pop()),a="",s=i.indexOf("code");if(s>-1&&(i.splice(s,1),a="code."),QI.forEach(c=>{let u=i.indexOf(c);u>-1&&(i.splice(u,1),a+=c+".")}),a+=o,i.length!=0||o.length===0)return null;let l={};return l.domEventName=r,l.fullKey=a,l}static matchEventFullKeyCode(e,i){let r=VV[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),QI.forEach(a=>{if(a!==r){let s=BV[a];s(e)&&(o+=a+".")}}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(i){return new(i||t)(X(me))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function $b(t){return bI(jV(t))}function jV(t){return{appProviders:[...GV,...t?.providers??[]],platformProviders:$V}}function HV(){Vm.makeCurrent()}function zV(){return new xn}function UV(){return e_(document),document}var $V=[{provide:qn,useValue:Fb},{provide:Yu,useValue:HV,multi:!0},{provide:me,useFactory:UV}];var GV=[{provide:kl,useValue:"root"},{provide:xn,useFactory:zV},{provide:Lm,useClass:ZI,multi:!0,deps:[me]},{provide:Lm,useClass:XI,multi:!0,deps:[me]},bc,zb,Hb,{provide:ct,useExisting:bc},{provide:pa,useClass:LV},[]];var Ns=class{},Fs=class{},Ei=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` `).forEach(e=>{let i=e.indexOf(":");if(i>0){let r=e.slice(0,i),o=e.slice(i+1).trim();this.addHeaderEntry(r,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if(typeof i=="string"&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(n.name,e);let r=(n.op==="a"?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>o.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let i=n.toLowerCase();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(n,e){let i=(Array.isArray(e)?e:[e]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Hm=class{encodeKey(n){return JI(n)}encodeValue(n){return JI(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function WV(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let o=r.indexOf("="),[a,s]=o==-1?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(a)||[];l.push(s),e.set(a,l)}),e}var qV=/%(\d[a-f0-9])/gi,YV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function JI(t){return encodeURIComponent(t).replace(qV,(n,e)=>YV[e]??n)}function Bm(t){return`${t}`}var Tr=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Hm,n.fromString){if(n.fromObject)throw new x(2805,!1);this.map=WV(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let i=n.fromObject[e],r=Array.isArray(i)?i.map(Bm):[Bm(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(i=>{let r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(Bm(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let i=this.map.get(n.param)||[],r=i.indexOf(Bm(n.value));r!==-1&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var zm=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function KV(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function eT(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function tT(t){return typeof Blob<"u"&&t instanceof Blob}function nT(t){return typeof FormData<"u"&&t instanceof FormData}function QV(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var yc="Content-Type",Um="Accept",Kb="X-Request-URL",rT="text/plain",oT="application/json",aT=`${oT}, ${rT}, */*`,Os=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,i,r){this.url=e,this.method=n.toUpperCase();let o;if(KV(this.method)||r?(this.body=i!==void 0?i:null,o=r):o=i,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new x(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),this.transferCache=o.transferCache}if(this.headers??=new Ei,this.context??=new zm,!this.params)this.params=new Tr,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),l=s===-1?"?":sxt.set(bt,n.setHeaders[bt]),ne)),n.setParams&&(Re=Object.keys(n.setParams).reduce((xt,bt)=>xt.set(bt,n.setParams[bt]),Re)),new t(e,i,v,{params:Re,headers:ne,context:De,reportProgress:T,responseType:r,withCredentials:E,transferCache:f,keepalive:o,cache:s,priority:a,timeout:g,mode:l,redirect:c,credentials:u,referrer:m,integrity:h})}},Sr=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Sr||{}),Ps=class{headers;status;statusText;url;ok;type;redirected;constructor(n,e=200,i="OK"){this.headers=n.headers||new Ei,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Dc=class t extends Ps{constructor(n={}){super(n)}type=Sr.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ga=class t extends Ps{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Sr.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected})}},Xi=class extends Ps{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},sT=200,ZV=204;function Gb(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var Ls=(()=>{class t{handler;constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof Os)o=e;else{let l;r.headers instanceof Ei?l=r.headers:l=new Ei(r.headers);let c;r.params&&(r.params instanceof Tr?c=r.params:c=new Tr({fromObject:r.params})),o=new Os(e,i,r.body!==void 0?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,credentials:r.credentials,referrer:r.referrer,integrity:r.integrity,timeout:r.timeout})}let a=Te(o).pipe(Ya(l=>this.handler.handle(l)));if(e instanceof Os||r.observe==="events")return a;let s=a.pipe(ze(l=>l instanceof ga));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return s.pipe(_e(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new x(2806,!1);return l.body}));case"blob":return s.pipe(_e(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new x(2807,!1);return l.body}));case"text":return s.pipe(_e(l=>{if(l.body!==null&&typeof l.body!="string")throw new x(2808,!1);return l.body}));case"json":default:return s.pipe(_e(l=>l.body))}case"response":return s;default:throw new x(2809,!1)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:new Tr().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Gb(r,i))}post(e,i,r={}){return this.request("POST",e,Gb(r,i))}put(e,i,r={}){return this.request("PUT",e,Gb(r,i))}static \u0275fac=function(i){return new(i||t)(X(Ns))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),XV=/^\)\]\}',?\n/;function iT(t){if(t.url)return t.url;let n=Kb.toLocaleLowerCase();return t.headers.get(n)}var lT=new D(""),jm=(()=>{class t{fetchImpl=d(Wb,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=d(F);destroyRef=d(On);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0})}handle(e){return new te(i=>{let r=new AbortController;this.doRequest(e,r.signal,i).then(qb,a=>i.error(new Xi({error:a})));let o;return e.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{r.signal.aborted||r.abort(new DOMException("signal timed out","TimeoutError"))},e.timeout))),()=>{o!==void 0&&clearTimeout(o),r.abort()}})}async doRequest(e,i,r){let o=this.createRequestInit(e),a;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,V({signal:i},o)));JV(g),r.next({type:Sr.Sent}),a=await g}catch(g){r.error(new Xi({error:g,status:g.status??0,statusText:g.statusText,url:e.urlWithParams,headers:g.headers}));return}let s=new Ei(a.headers),l=a.statusText,c=iT(a)??e.urlWithParams,u=a.status,m=null;if(e.reportProgress&&r.next(new Dc({headers:s,status:u,statusText:l,url:c})),a.body){let g=a.headers.get("content-length"),v=[],E=a.body.getReader(),T=0,ne,Re,De=typeof Zone<"u"&&Zone.current,xt=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyed){await E.cancel(),xt=!0;break}let{done:rt,value:Mt}=await E.read();if(rt)break;if(v.push(Mt),T+=Mt.length,e.reportProgress){Re=e.responseType==="text"?(Re??"")+(ne??=new TextDecoder).decode(Mt,{stream:!0}):void 0;let Ri=()=>r.next({type:Sr.DownloadProgress,total:g?+g:void 0,loaded:T,partialText:Re});De?De.run(Ri):Ri()}}}),xt){r.complete();return}let bt=this.concatChunks(v,T);try{let rt=a.headers.get(yc)??"";m=this.parseBody(e,bt,rt,u)}catch(rt){r.error(new Xi({error:rt,headers:new Ei(a.headers),status:a.status,statusText:a.statusText,url:iT(a)??e.urlWithParams}));return}}u===0&&(u=m?sT:0);let h=u>=200&&u<300,f=a.redirected;h?(r.next(new ga({body:m,headers:s,status:u,statusText:l,url:c,redirected:f})),r.complete()):r.error(new Xi({error:m,headers:s,status:u,statusText:l,url:c,redirected:f}))}parseBody(e,i,r,o){switch(e.responseType){case"json":let a=new TextDecoder().decode(i).replace(XV,"");if(a==="")return null;try{return JSON.parse(a)}catch(s){if(o<200||o>=300)return a;throw s}case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:r});case"arraybuffer":return i.buffer}}createRequestInit(e){let i={},r;if(r=e.credentials,e.withCredentials&&(r="include"),e.headers.forEach((o,a)=>i[o]=a.join(",")),e.headers.has(Um)||(i[Um]=aT),!e.headers.has(yc)){let o=e.detectContentTypeHeader();o!==null&&(i[yc]=o)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:r,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity}}concatChunks(e,i){let r=new Uint8Array(i),o=0;for(let a of e)r.set(a,o),o+=a.length;return r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),Wb=class{};function qb(){}function JV(t){t.then(qb,qb)}function e2(t,n){return n(t)}function t2(t,n,e){return(i,r)=>Ja(e,()=>n(i,o=>t(o,r)))}var Qb=new D(""),Zb=new D(""),cT=new D("",{providedIn:"root",factory:()=>!0});var $m=(()=>{class t extends Ns{backend;injector;chain=null;pendingTasks=d(ls);contributeToStability=d(cT);constructor(e,i){super(),this.backend=e,this.injector=i}handle(e){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(Qb),...this.injector.get(Zb,[])]));this.chain=i.reduceRight((r,o)=>t2(r,o,this.injector),e2)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(Yh(i))}else return this.chain(e,i=>this.backend.handle(i))}static \u0275fac=function(i){return new(i||t)(X(Fs),X(st))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();var n2=/^\)\]\}',?\n/,i2=RegExp(`^${Kb}:`,"m");function r2(t){return"responseURL"in t&&t.responseURL?t.responseURL:i2.test(t.getAllResponseHeaders())?t.getResponseHeader(Kb):null}var Yb=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new x(-2800,!1);let i=this.xhrFactory;return Te(null).pipe(At(()=>new te(o=>{let a=i.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((E,T)=>a.setRequestHeader(E,T.join(","))),e.headers.has(Um)||a.setRequestHeader(Um,aT),!e.headers.has(yc)){let E=e.detectContentTypeHeader();E!==null&&a.setRequestHeader(yc,E)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let E=e.responseType.toLowerCase();a.responseType=E!=="json"?E:"text"}let s=e.serializeBody(),l=null,c=()=>{if(l!==null)return l;let E=a.statusText||"OK",T=new Ei(a.getAllResponseHeaders()),ne=r2(a)||e.url;return l=new Dc({headers:T,status:a.status,statusText:E,url:ne}),l},u=()=>{let{headers:E,status:T,statusText:ne,url:Re}=c(),De=null;T!==ZV&&(De=typeof a.response>"u"?a.responseText:a.response),T===0&&(T=De?sT:0);let xt=T>=200&&T<300;if(e.responseType==="json"&&typeof De=="string"){let bt=De;De=De.replace(n2,"");try{De=De!==""?JSON.parse(De):null}catch(rt){De=bt,xt&&(xt=!1,De={error:rt,text:De})}}xt?(o.next(new ga({body:De,headers:E,status:T,statusText:ne,url:Re||void 0})),o.complete()):o.error(new Xi({error:De,headers:E,status:T,statusText:ne,url:Re||void 0}))},m=E=>{let{url:T}=c(),ne=new Xi({error:E,status:a.status||0,statusText:a.statusText||"Unknown Error",url:T||void 0});o.error(ne)},h=m;e.timeout&&(h=E=>{let{url:T}=c(),ne=new Xi({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:T||void 0});o.error(ne)});let f=!1,g=E=>{f||(o.next(c()),f=!0);let T={type:Sr.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(T.total=E.total),e.responseType==="text"&&a.responseText&&(T.partialText=a.responseText),o.next(T)},v=E=>{let T={type:Sr.UploadProgress,loaded:E.loaded};E.lengthComputable&&(T.total=E.total),o.next(T)};return a.addEventListener("load",u),a.addEventListener("error",m),a.addEventListener("timeout",h),a.addEventListener("abort",m),e.reportProgress&&(a.addEventListener("progress",g),s!==null&&a.upload&&a.upload.addEventListener("progress",v)),a.send(s),o.next({type:Sr.Sent}),()=>{a.removeEventListener("error",m),a.removeEventListener("abort",m),a.removeEventListener("load",u),a.removeEventListener("timeout",h),e.reportProgress&&(a.removeEventListener("progress",g),s!==null&&a.upload&&a.upload.removeEventListener("progress",v)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(i){return new(i||t)(X(pa))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),dT=new D(""),o2="XSRF-TOKEN",a2=new D("",{providedIn:"root",factory:()=>o2}),s2="X-XSRF-TOKEN",l2=new D("",{providedIn:"root",factory:()=>s2}),Cc=class{},c2=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,i){this.doc=e,this.cookieName=i}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=hc(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(i){return new(i||t)(X(me),X(a2))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function d2(t,n){let e=t.url.toLowerCase();if(!d(dT)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let i=d(Cc).getToken(),r=d(l2);return i!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Gm=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(Gm||{});function uT(t,n){return{\u0275kind:t,\u0275providers:n}}function Xb(...t){let n=[Ls,Yb,$m,{provide:Ns,useExisting:$m},{provide:Fs,useFactory:()=>d(lT,{optional:!0})??d(Yb)},{provide:Qb,useValue:d2,multi:!0},{provide:dT,useValue:!0},{provide:Cc,useClass:c2}];for(let e of t)n.push(...e.\u0275providers);return Wr(n)}function Jb(t){return uT(Gm.Interceptors,t.map(n=>({provide:Qb,useValue:n,multi:!0})))}function ev(){return uT(Gm.Fetch,[jm,{provide:lT,useExisting:jm},{provide:Fs,useExisting:jm}])}var u2=new D(""),m2="b",f2="h",h2="s",p2="st",g2="u",_2="rt",tv=new D(""),b2=["GET","HEAD"];function v2(t,n){let f=d(tv),{isCacheActive:e}=f,i=ld(f,["isCacheActive"]),{transferCache:r,method:o}=t;if(!e||r===!1||o==="POST"&&!i.includePostRequests&&!r||o!=="POST"&&!b2.includes(o)||!i.includeRequestsWithAuthHeaders&&y2(t)||i.filter?.(t)===!1)return n(t);let a=d(ua);if(d(u2,{optional:!0}))throw new x(2803,!1);let l=t.url,c=D2(t,l),u=a.get(c,null),m=i.includeHeaders;if(typeof r=="object"&&r.includeHeaders&&(m=r.includeHeaders),u){let{[m2]:g,[_2]:v,[f2]:E,[h2]:T,[p2]:ne,[g2]:Re}=u,De=g;switch(v){case"arraybuffer":De=new TextEncoder().encode(g).buffer;break;case"blob":De=new Blob([g]);break}let xt=new Ei(E);return Te(new ga({body:De,headers:xt,status:T,statusText:ne,url:Re}))}return n(t)}function y2(t){return t.headers.has("authorization")||t.headers.has("proxy-authorization")}function mT(t){return[...t.keys()].sort().map(n=>`${n}=${t.getAll(n)}`).join("&")}function D2(t,n){let{params:e,method:i,responseType:r}=t,o=mT(e),a=t.serializeBody();a instanceof URLSearchParams?a=mT(a):typeof a!="string"&&(a="");let s=[i,r,n,a,o].join("|"),l=C2(s);return l}function C2(t){let n=0;for(let e of t)n=Math.imul(31,n)+e.charCodeAt(0)<<0;return n+=2147483648,n.toString()}function fT(t){return[{provide:tv,useFactory:()=>(Fn("NgHttpTransferCache"),V({isCacheActive:!0},t))},{provide:Zb,useValue:v2,multi:!0},{provide:Ss,multi:!0,useFactory:()=>{let n=d(Ct),e=d(tv);return()=>{n.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var iv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:function(i){let r=null;return i?r=new(i||t):r=X(w2),r},providedIn:"root"})}return t})(),w2=(()=>{class t extends iv{_doc;constructor(e){super(),this._doc=e}sanitize(e,i){if(i==null)return null;switch(e){case _i.NONE:return i;case _i.HTML:return yr(i,"HTML")?gi(i):em(this._doc,String(i)).toString();case _i.STYLE:return yr(i,"Style")?gi(i):i;case _i.SCRIPT:if(yr(i,"Script"))return gi(i);throw new x(5200,!1);case _i.URL:return yr(i,"URL")?gi(i):Zl(String(i));case _i.RESOURCE_URL:if(yr(i,"ResourceURL"))return gi(i);throw new x(5201,!1);default:throw new x(5202,!1)}}bypassSecurityTrustHtml(e){return d_(e)}bypassSecurityTrustStyle(e){return u_(e)}bypassSecurityTrustScript(e){return m_(e)}bypassSecurityTrustUrl(e){return f_(e)}bypassSecurityTrustResourceUrl(e){return h_(e)}static \u0275fac=function(i){return new(i||t)(X(me))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wm=(function(t){return t[t.NoHttpTransferCache=0]="NoHttpTransferCache",t[t.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",t[t.I18nSupport=2]="I18nSupport",t[t.EventReplay=3]="EventReplay",t[t.IncrementalHydration=4]="IncrementalHydration",t})(Wm||{});function E2(t,n=[],e={}){return{\u0275kind:t,\u0275providers:n}}function pT(){return E2(Wm.EventReplay,vI())}function gT(...t){let n=[],e=new Set;for(let{\u0275providers:r,\u0275kind:o}of t)e.add(o),r.length&&n.push(r);let i=e.has(Wm.HttpTransferCacheOptions);return Wr([[],[],yI(),e.has(Wm.NoHttpTransferCache)||i?[]:fT({}),n])}var I2={schedule(t,n){let e=setTimeout(t,n);return()=>clearTimeout(e)}};function T2(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}function S2(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}var rv;function M2(t,n){if(!rv){let e=Element.prototype;rv=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE?rv.call(t,n):!1}function k2(t){let n={};return t.forEach(({propName:e,templateName:i,transform:r})=>{n[T2(i)]=[e,r]}),n}function A2(t,n){return n.get(ma).resolveComponentFactory(t).inputs}function R2(t,n){let e=t.childNodes,i=n.map(()=>[]),r=-1;n.some((o,a)=>o==="*"?(r=a,!0):!1);for(let o=0,a=e.length;or!=="*"&&M2(t,r)?(i=o,!0):!1),i}var N2=10,ov=class{componentFactory;inputMap=new Map;constructor(n,e){this.componentFactory=e.get(ma).resolveComponentFactory(n);for(let i of this.componentFactory.inputs)this.inputMap.set(i.propName,i.templateName)}create(n){return new av(this.componentFactory,n,this.inputMap)}},av=class{componentFactory;injector;inputMap;eventEmitters=new jo(1);events=this.eventEmitters.pipe(At(n=>at(...n)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(n,e,i){this.componentFactory=n,this.injector=e,this.inputMap=i,this.ngZone=this.injector.get(F),this.appRef=this.injector.get(Ct),this.cdScheduler=e.get(en),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(n){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(n)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=I2.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},N2))})}getInputValue(n){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(n):this.componentRef.instance[n])}setInputValue(n,e){if(this.componentRef===null){this.initialInputValues.set(n,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(n)??n,e),N_(this.componentRef.hostView)&&(F_(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(n){let e=U.create({providers:[],parent:this.injector}),i=R2(n,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,i,n),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[n,e]of this.initialInputValues)this.setInputValue(n,e);this.initialInputValues.clear()}initializeOutputs(n){let e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>{let o=n.instance[i];return new te(a=>{let s=o.subscribe(l=>a.next({name:r,value:l}));return()=>s.unsubscribe()})});this.eventEmitters.next(e)}runInZone(n){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(n):n()}},sv=class extends HTMLElement{ngElementEventsSubscription=null};function _T(t,n){let e=A2(t,n.injector),i=n.strategyFactory||new ov(t,n.injector),r=k2(e);class o extends sv{injector;static observedAttributes=Object.keys(r);get ngElementStrategy(){if(!this._ngElementStrategy){let s=this._ngElementStrategy=i.create(this.injector||n.injector);e.forEach(({propName:l,transform:c})=>{if(!this.hasOwnProperty(l))return;let u=this[l];delete this[l],s.setInputValue(l,u,c)})}return this._ngElementStrategy}_ngElementStrategy;constructor(s){super(),this.injector=s}attributeChangedCallback(s,l,c,u){let[m,h]=r[s];this.ngElementStrategy.setInputValue(m,c,h)}connectedCallback(){let s=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),s=!0),this.ngElementStrategy.connect(this),s||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(s=>{let l=new CustomEvent(s.name,{detail:s.value});this.dispatchEvent(l)})}}return e.forEach(({propName:a,transform:s})=>{Object.defineProperty(o.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(l){this.ngElementStrategy.setInputValue(a,l,s)},configurable:!0,enumerable:!0})}),o}var ET=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(i){return new(i||t)(P(Pe),P(N))};static \u0275dir=A({type:t})}return t})(),xT=(()=>{class t extends ET{static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,features:[ye]})}return t})(),Ji=new D(""),F2={provide:Ji,useExisting:lt(()=>cv),multi:!0},cv=(()=>{class t extends xT{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(i,r){i&1&&I("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},standalone:!1,features:[pe([F2]),ye]})}return t})(),P2={provide:Ji,useExisting:lt(()=>js),multi:!0};function L2(){let t=Qn()?Qn().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var V2=new D(""),js=(()=>{class t extends ET{_compositionMode;_composing=!1;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!L2())}writeValue(e){let i=e??"";this.setProperty("value",i)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(i){return new(i||t)(P(Pe),P(N),P(V2,8))};static \u0275dir=A({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&I("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},standalone:!1,features:[pe([P2]),ye]})}return t})();function dv(t){return t==null||uv(t)===0}function uv(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var _a=new D(""),sf=new D(""),B2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Xn=class{static min(n){return j2(n)}static max(n){return H2(n)}static required(n){return IT(n)}static requiredTrue(n){return z2(n)}static email(n){return U2(n)}static minLength(n){return $2(n)}static maxLength(n){return TT(n)}static pattern(n){return ST(n)}static nullValidator(n){return Ym()}static compose(n){return NT(n)}static composeAsync(n){return FT(n)}};function j2(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function IT(t){return dv(t.value)?{required:!0}:null}function z2(t){return t.value===!0?null:{required:!0}}function U2(t){return dv(t.value)||B2.test(t.value)?null:{email:!0}}function $2(t){return n=>{let e=n.value?.length??uv(n.value);return e===null||e===0?null:e{let e=n.value?.length??uv(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function ST(t){if(!t)return Ym;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(dv(i.value))return null;let r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ym(t){return null}function MT(t){return t!=null}function kT(t){return Ts(t)?Un(t):t}function AT(t){let n={};return t.forEach(e=>{n=e!=null?V(V({},n),e):n}),Object.keys(n).length===0?null:n}function RT(t,n){return n.map(e=>e(t))}function G2(t){return!t.validate}function OT(t){return t.map(n=>G2(n)?n:e=>n.validate(e))}function NT(t){if(!t)return null;let n=t.filter(MT);return n.length==0?null:function(e){return AT(RT(e,n))}}function mv(t){return t!=null?NT(OT(t)):null}function FT(t){if(!t)return null;let n=t.filter(MT);return n.length==0?null:function(e){let i=RT(e,n).map(kT);return Gh(i).pipe(_e(AT))}}function fv(t){return t!=null?FT(OT(t)):null}function bT(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function PT(t){return t._rawValidators}function LT(t){return t._rawAsyncValidators}function lv(t){return t?Array.isArray(t)?t:[t]:[]}function Km(t,n){return Array.isArray(t)?t.includes(n):t===n}function vT(t,n){let e=lv(n);return lv(t).forEach(r=>{Km(e,r)||e.push(r)}),e}function yT(t,n){return lv(n).filter(e=>!Km(t,e))}var Qm=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=mv(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=fv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},lo=class extends Qm{name;get formDirective(){return null}get path(){return null}},xi=class extends Qm{_parent=null;name=null;valueAccessor=null},Zm=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},W2={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},lee=Ie(V({},W2),{"[class.ng-submitted]":"isSubmitted"}),Hs=(()=>{class t extends Zm{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(P(xi,2))};static \u0275dir=A({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&K("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[ye]})}return t})(),VT=(()=>{class t extends Zm{constructor(e){super(e)}static \u0275fac=function(i){return new(i||t)(P(lo,10))};static \u0275dir=A({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&K("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[ye]})}return t})();var wc="VALID",qm="INVALID",Vs="PENDING",Ec="DISABLED",co=class{},Xm=class extends co{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Ic=class extends co{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Tc=class extends co{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},Bs=class extends co{status;source;constructor(n,e){super(),this.status=n,this.source=e}},Jm=class extends co{source;constructor(n){super(),this.source=n}},ef=class extends co{source;constructor(n){super(),this.source=n}};function BT(t){return(lf(t)?t.validators:t)||null}function q2(t){return Array.isArray(t)?mv(t):t||null}function jT(t,n){return(lf(n)?n.asyncValidators:t)||null}function Y2(t){return Array.isArray(t)?fv(t):t||null}function lf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function K2(t,n,e){let i=t.controls;if(!(n?Object.keys(i):i).length)throw new x(1e3,"");if(!i[e])throw new x(1001,"")}function Q2(t,n,e){t._forEachChild((i,r)=>{if(e[r]===void 0)throw new x(1002,"")})}var tf=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Yn(this.statusReactive)}set status(n){Yn(()=>this.statusReactive.set(n))}_status=ke(()=>this.statusReactive());statusReactive=Me(void 0);get valid(){return this.status===wc}get invalid(){return this.status===qm}get pending(){return this.status==Vs}get disabled(){return this.status===Ec}get enabled(){return this.status!==Ec}errors;get pristine(){return Yn(this.pristineReactive)}set pristine(n){Yn(()=>this.pristineReactive.set(n))}_pristine=ke(()=>this.pristineReactive());pristineReactive=Me(!0);get dirty(){return!this.pristine}get touched(){return Yn(this.touchedReactive)}set touched(n){Yn(()=>this.touchedReactive.set(n))}_touched=ke(()=>this.touchedReactive());touchedReactive=Me(!1);get untouched(){return!this.touched}_events=new S;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(vT(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(vT(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(yT(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(yT(n,this._rawAsyncValidators))}hasValidator(n){return Km(this._rawValidators,n)}hasAsyncValidator(n){return Km(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(Ie(V({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Tc(!0,i))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:i})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,i),e&&n.emitEvent!==!1&&this._events.next(new Tc(!1,i))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let i=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(Ie(V({},n),{sourceControl:i})),e&&n.emitEvent!==!1&&this._events.next(new Ic(!1,i))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=n.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,i),e&&n.emitEvent!==!1&&this._events.next(new Ic(!0,i))}markAsPending(n={}){this.status=Vs;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Bs(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(Ie(V({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Ec,this.errors=null,this._forEachChild(r=>{r.disable(Ie(V({},n),{onlySelf:!0}))}),this._updateValue();let i=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xm(this.value,i)),this._events.next(new Bs(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ie(V({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=wc,this._forEachChild(i=>{i.enable(Ie(V({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(Ie(V({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wc||this.status===Vs)&&this._runAsyncValidator(i,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Xm(this.value,e)),this._events.next(new Bs(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(Ie(V({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ec:wc}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Vs,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let i=kT(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){let i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,i){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||i)&&this._events.next(new Bs(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,i)}_initObservables(){this.valueChanges=new R,this.statusChanges=new R}_calculateStatus(){return this._allControlsDisabled()?Ec:this.errors?qm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vs)?Vs:this._anyControlsHaveStatus(qm)?qm:wc}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),r&&this._events.next(new Ic(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Tc(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){lf(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=q2(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Y2(this._rawAsyncValidators)}},nf=class extends tf{constructor(n,e,i){super(BT(e),jT(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){Q2(this,!0,n),Object.keys(n).forEach(i=>{K2(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(i=>{let r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>i._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var zs=new D("",{providedIn:"root",factory:()=>cf}),cf="always";function Z2(t,n){return[...n.path,t]}function Sc(t,n,e=cf){hv(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),J2(t,n),tB(t,n),eB(t,n),X2(t,n)}function rf(t,n,e=!0){let i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),af(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function of(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function X2(t,n){if(n.valueAccessor.setDisabledState){let e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function hv(t,n){let e=PT(t);n.validator!==null?t.setValidators(bT(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let i=LT(t);n.asyncValidator!==null?t.setAsyncValidators(bT(i,n.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();of(n._rawValidators,r),of(n._rawAsyncValidators,r)}function af(t,n){let e=!1;if(t!==null){if(n.validator!==null){let r=PT(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(n.asyncValidator!==null){let r=LT(t);if(Array.isArray(r)&&r.length>0){let o=r.filter(a=>a!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}let i=()=>{};return of(n._rawValidators,i),of(n._rawAsyncValidators,i),e}function J2(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&HT(t,n)})}function eB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&HT(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function HT(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tB(t,n){let e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function zT(t,n){t==null,hv(t,n)}function nB(t,n){return af(t,n)}function UT(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function iB(t){return Object.getPrototypeOf(t.constructor)===xT}function $T(t,n){t._syncPendingControls(),n.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function GT(t,n){if(!n)return null;Array.isArray(n);let e,i,r;return n.forEach(o=>{o.constructor===js?e=o:iB(o)?i=o:r=o}),r||i||e||null}function rB(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var oB={provide:lo,useExisting:lt(()=>ba)},xc=Promise.resolve(),ba=(()=>{class t extends lo{callSetDisabledState;get submitted(){return Yn(this.submittedReactive)}_submitted=ke(()=>this.submittedReactive());submittedReactive=Me(!1);_directives=new Set;form;ngSubmit=new R;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new nf({},mv(e),fv(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){xc.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),Sc(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){xc.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){xc.then(()=>{let i=this._findContainer(e.path),r=new nf({});zT(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){xc.then(()=>{let i=this._findContainer(e.path);i&&i.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){xc.then(()=>{this.form.get(e.path).setValue(i)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),$T(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Jm(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new ef(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||t)(P(_a,10),P(sf,10),P(zs,8))};static \u0275dir=A({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&I("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[pe([oB]),ye]})}return t})();function DT(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function CT(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Mr=class extends tf{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,i){super(BT(e),jT(i,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lf(e)&&(e.nonNullable||e.initialValueIsDefault)&&(CT(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){DT(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){DT(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){CT(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var aB=t=>t instanceof Mr;var sB={provide:xi,useExisting:lt(()=>va)},wT=Promise.resolve(),va=(()=>{class t extends xi{_changeDetectorRef;callSetDisabledState;control=new Mr;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new R;constructor(e,i,r,o,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=GT(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),UT(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Sc(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){wT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&Q(i);wT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Z2(e,this._parent):[e]}static \u0275fac=function(i){return new(i||t)(P(lo,9),P(_a,10),P(sf,10),P(Ji,10),P(Ae,8),P(zs,8))};static \u0275dir=A({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[pe([sB]),ye,Be]})}return t})();var WT=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var qT=new D(""),lB={provide:xi,useExisting:lt(()=>Mc)},Mc=(()=>{class t extends xi{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new R;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,i,r,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=GT(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&rf(i,this,!1),Sc(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}UT(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&rf(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(i){return new(i||t)(P(_a,10),P(sf,10),P(Ji,10),P(qT,8),P(zs,8))};static \u0275dir=A({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[pe([lB]),ye,Be]})}return t})(),cB={provide:lo,useExisting:lt(()=>kc)},kc=(()=>{class t extends lo{callSetDisabledState;get submitted(){return Yn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=ke(()=>this._submittedReactive());_submittedReactive=Me(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new R;constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(af(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let i=this.form.get(e.path);return Sc(i,e,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){rf(e.control||null,e,!1),rB(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this._submittedReactive.set(!0),$T(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Jm(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(!1),i?.emitEvent!==!1&&this.form._events.next(new ef(this.form))}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(rf(i||null,e),aB(r)&&(Sc(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let i=this.form.get(e.path);zT(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let i=this.form.get(e.path);i&&nB(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hv(this.form,this),this._oldForm&&af(this._oldForm,this)}static \u0275fac=function(i){return new(i||t)(P(_a,10),P(sf,10),P(zs,8))};static \u0275dir=A({type:t,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&I("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[pe([cB]),ye,Be]})}return t})();function dB(t){return typeof t=="number"?t:parseInt(t,10)}var pv=(()=>{class t{_validator=Ym;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Ym,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,features:[Be]})}return t})();var uB={provide:_a,useExisting:lt(()=>gv),multi:!0};var gv=(()=>{class t extends pv{required;inputName="required";normalizeInput=Q;createValidator=e=>IT;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&W("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[pe([uB]),ye]})}return t})();var mB={provide:_a,useExisting:lt(()=>_v),multi:!0},_v=(()=>{class t extends pv{maxlength;inputName="maxlength";normalizeInput=e=>dB(e);createValidator=e=>TT(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&W("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[pe([mB]),ye]})}return t})(),fB={provide:_a,useExisting:lt(()=>bv),multi:!0},bv=(()=>{class t extends pv{pattern;inputName="pattern";normalizeInput=e=>e;createValidator=e=>ST(e);static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(i,r){i&2&&W("pattern",r._enabled?r.pattern:null)},inputs:{pattern:"pattern"},standalone:!1,features:[pe([fB]),ye]})}return t})();var YT=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();var uo=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:zs,useValue:e.callSetDisabledState??cf}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[YT]})}return t})(),df=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:qT,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:zs,useValue:e.callSetDisabledState??cf}]}}static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[YT]})}return t})();function Ac(t){return t.buttons===0||t.detail===0}function Rc(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var yv;function KT(){if(yv==null){let t=typeof document<"u"?document.head:null;yv=!!(t&&(t.createShadowRoot||t.attachShadow))}return yv}function Dv(t){if(KT()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function Ln(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Bt(t){return t.composedPath?t.composedPath()[0]:t.target}var Cv;try{Cv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Cv=!1}var Ee=(()=>{class t{_platformId=d(qn);isBrowser=this._platformId?Fm(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Cv)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Oc;function QT(){if(Oc==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Oc=!0}))}finally{Oc=Oc||!1}return Oc}function mo(t){return QT()?t:!!t.capture}function Vn(t,n=0){return ZT(t)?Number(t):arguments.length===2?n:0}function ZT(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function cn(t){return t instanceof N?t.nativeElement:t}var XT=new D("cdk-input-modality-detector-options"),JT={ignoreKeys:[18,17,224,91,16]},eS=650,wv={passive:!0,capture:!0},tS=(()=>{class t{_platform=d(Ee);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new wn(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Bt(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Rc(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Bt(e)};constructor(){let e=d(F),i=d(me),r=d(XT,{optional:!0});if(this._options=V(V({},JT),r),this.modalityDetected=this._modality.pipe(Cl(1)),this.modalityChanged=this.modalityDetected.pipe(Ka()),this._platform.isBrowser){let o=d(ct).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[o.listen(i,"keydown",this._onKeydown,wv),o.listen(i,"mousedown",this._onMousedown,wv),o.listen(i,"touchstart",this._onTouchstart,wv)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nc=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(Nc||{}),nS=new D("cdk-focus-monitor-default-options"),uf=mo({passive:!0,capture:!0}),Jn=(()=>{class t{_ngZone=d(F);_platform=d(Ee);_inputModalityDetector=d(tS);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=d(me);_stopInputModalityDetector=new S;constructor(){let e=d(nS,{optional:!0});this._detectionMode=e?.detectionMode||Nc.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=Bt(e);for(let r=i;r;r=r.parentElement)e.type==="focus"?this._onFocus(e,r):this._onBlur(e,r)};monitor(e,i=!1){let r=cn(e);if(!this._platform.isBrowser||r.nodeType!==1)return Te();let o=Dv(r)||this._document,a=this._elementInfo.get(r);if(a)return i&&(a.checkChildren=!0),a.subject;let s={checkChildren:i,subject:new S,rootNode:o};return this._elementInfo.set(r,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let i=cn(e),r=this._elementInfo.get(i);r&&(r.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(r))}focusVia(e,i,r){let o=cn(e),a=this._document.activeElement;o===a?this._getClosestElementsInfo(o).forEach(([s,l])=>this._originChanged(s,i,l)):(this._setOrigin(i),typeof o.focus=="function"&&o.focus(r))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Nc.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===Nc.IMMEDIATE){clearTimeout(this._originTimeoutId);let r=this._originFromTouchInteraction?eS:1;this._originTimeoutId=setTimeout(()=>this._origin=null,r)}})}_onFocus(e,i){let r=this._elementInfo.get(i),o=Bt(e);!r||!r.checkChildren&&i!==o||this._originChanged(i,this._getFocusOrigin(o),r)}_onBlur(e,i){let r=this._elementInfo.get(i);!r||r.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(r,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,r=this._rootNodeFocusListenerCount.get(i)||0;r||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,uf),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,uf)}),this._rootNodeFocusListenerCount.set(i,r+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Se(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let r=this._rootNodeFocusListenerCount.get(i);r>1?this._rootNodeFocusListenerCount.set(i,r-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,uf),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,uf),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,r){this._setClasses(e,i),this._emitOrigin(r,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((r,o)=>{(o===e||r.checkChildren&&o.contains(e))&&i.push([o,r])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:r}=this._inputModalityDetector;if(r!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let o=e.labels;if(o){for(let a=0;a{class t{_elementRef=d(N);_focusMonitor=d(Jn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new R;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var mf=new WeakMap,Ke=(()=>{class t{_appRef;_injector=d(U);_environmentInjector=d(st);load(e){let i=this._appRef=this._appRef||this._injector.get(Ct),r=mf.get(i);r||(r={loaders:new Set,refs:[]},mf.set(i,r),i.onDestroy(()=>{mf.get(i)?.refs.forEach(o=>o.destroy()),mf.delete(i)})),r.loaders.has(e)||(r.loaders.add(e),r.refs.push(xm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var er=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} `],encapsulation:2,changeDetection:0})}return t})();function kr(t){return Array.isArray(t)?t:[t]}var iS=new Set,ya,ff=(()=>{class t{_platform=d(Ee);_nonce=d(Ds,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pB}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&hB(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hB(t,n){if(!iS.has(t))try{ya||(ya=document.createElement("style"),n&&ya.setAttribute("nonce",n),ya.setAttribute("type","text/css"),document.head.appendChild(ya)),ya.sheet&&(ya.sheet.insertRule(`@media ${t} {body{ }}`,0),iS.add(t))}catch(e){console.error(e)}}function pB(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Fc=(()=>{class t{_mediaMatcher=d(ff);_zone=d(F);_queries=new Map;_destroySubject=new S;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return rS(kr(e)).some(r=>this._registerQuery(r).mql.matches)}observe(e){let r=rS(kr(e)).map(a=>this._registerQuery(a).observable),o=Ur(r);return o=ci(o.pipe(Ze(1)),o.pipe(Cl(1),Li(0))),o.pipe(_e(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:l,query:c})=>{s.matches=s.matches||l,s.breakpoints[c]=l}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),o={observable:new te(a=>{let s=l=>this._zone.run(()=>a.next(l));return i.addListener(s),()=>{i.removeListener(s)}}).pipe(tt(i),_e(({matches:a})=>({query:e,matches:a})),Se(this._destroySubject)),mql:i};return this._queries.set(e,o),o}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function rS(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function gB(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aS=(()=>{class t{_mutationObserverFactory=d(oS);_observedElements=new Map;_ngZone=d(F);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,i)=>this._cleanupObserver(i))}observe(e){let i=cn(e);return new te(r=>{let a=this._observeElement(i).pipe(_e(s=>s.filter(l=>!gB(l))),ze(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{r.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(i)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let i=new S,r=this._mutationObserverFactory.create(o=>i.next(o));r&&r.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:r,stream:i,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:i,stream:r}=this._observedElements.get(e);i&&i.disconnect(),r.complete(),this._observedElements.delete(e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sS=(()=>{class t{_contentObserver=d(aS);_elementRef=d(N);event=new R;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Vn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Li(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",Q],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),Us=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[oS]})}return t})();var Tv=(()=>{class t{_platform=d(Ee);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return bB(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=_B(IB(e));if(i&&(lS(i)===-1||!this.isVisible(i)))return!1;let r=e.nodeName.toLowerCase(),o=lS(e);return e.hasAttribute("contenteditable")?o!==-1:r==="iframe"||r==="object"||this._platform.WEBKIT&&this._platform.IOS&&!EB(e)?!1:r==="audio"?e.hasAttribute("controls")?o!==-1:!1:r==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return xB(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _B(t){try{return t.frameElement}catch{return null}}function bB(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function vB(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function yB(t){return CB(t)&&t.type=="hidden"}function DB(t){return wB(t)&&t.hasAttribute("href")}function CB(t){return t.nodeName.toLowerCase()=="input"}function wB(t){return t.nodeName.toLowerCase()=="a"}function uS(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function lS(t){if(!uS(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function EB(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function xB(t){return yB(t)?!1:vB(t)||DB(t)||t.hasAttribute("contenteditable")||uS(t)}function IB(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Iv=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,i,r,o=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=r,this._injector=a,o||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i=0;i--){let r=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(r)return r}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?Dt(n,{injector:this._injector}):setTimeout(n)}},hf=(()=>{class t{_checker=d(Tv);_ngZone=d(F);_document=d(me);_injector=d(U);constructor(){d(Ke).load(er)}create(e,i=!1){return new Iv(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ar=(()=>{class t{_elementRef=d(N);_focusTrapFactory=d(hf);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){d(Ee).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Ln(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Q],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Q]},exportAs:["cdkTrapFocus"],features:[Be]})}return t})(),mS=new D("liveAnnouncerElement",{providedIn:"root",factory:fS});function fS(){return null}var hS=new D("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),TB=0,Sv=(()=>{class t{_ngZone=d(F);_defaultOptions=d(hS,{optional:!0});_liveElement;_document=d(me);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(mS,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let r=this._defaultOptions,o,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[o,a]=i,this.clear(),clearTimeout(this._previousTimeout),o||(o=r&&r.politeness?r.politeness:"polite"),a==null&&r&&(a=r.duration),this._liveElement.setAttribute("aria-live",o),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),r=this._document.createElement("div");for(let o=0;o .cdk-overlay-container [aria-modal="true"]');for(let r=0;r{class t{_platform=d(Ee);_hasCheckedHighContrastMode;_document=d(me);_breakpointSubscription;constructor(){this._breakpointSubscription=d(Fc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fo.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(e):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(e.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fo.BLACK_ON_WHITE}return fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(xv,cS,dS),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===fo.BLACK_ON_WHITE?e.add(xv,cS):i===fo.WHITE_ON_BLACK&&e.add(xv,dS)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bn=(()=>{class t{constructor(){d(pf)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[Us]})}return t})();var Mv={},Qe=(()=>{class t{_appId=d(hn);getId(e){return this._appId!=="ng"&&(e+=this._appId),Mv.hasOwnProperty(e)||(Mv[e]=0),`${e}${Mv[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var SB=200,$s=class{_letterKeyStream=new S;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new S;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:SB;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Vi(e=>this._pressedLetters.push(e)),Li(n),ze(()=>this._pressedLetters.length>0),_e(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;it[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var Gs=class{_items;_activeItemIndex=Me(-1);_activeItem=Me(null);_wrap=!1;_typeaheadSubscription=ge.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof _r?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):Yi(n)&&(this._effectRef=ro(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new S;change=new S;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new $s(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(n){let e=n.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(o=>!n[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&r){this.setNextItemActive();break}else return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&r){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&r){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(o>0?o:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&r){let o=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(o-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var Da=class extends Gs{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Pc=class extends Gs{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};function Ca(t){return zr(t)?t:Te(t)}var kv=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=n=>!1;_trackByFn=n=>n;_items=[];_typeahead;_typeaheadSubscription=ge.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let n=0;for(let i=0;i{this._items=i.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):zr(n)?n.subscribe(i=>{this._items=i,this._typeahead?.setItems(i),this._updateActiveItemIndex(i),this._initializeFocus()}):(this._items=n,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new S;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(n){switch(n.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(n.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(n,e={}){e.emitChangeEvent??=!0;let i=typeof n=="number"?n:this._items.findIndex(a=>this._trackByFn(a)===this._trackByFn(n));if(i<0||i>=this._items.length)return;let r=this._items[i];if(this._activeItem!==null&&this._trackByFn(r)===this._trackByFn(this._activeItem))return;let o=this._activeItem;this._activeItem=r??null,this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i),this._activeItem?.focus(),o?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(n){let e=this._activeItem;if(!e)return;let i=n.findIndex(r=>this._trackByFn(r)===this._trackByFn(e));i>-1&&i!==this._activeItemIndex&&(this._activeItemIndex=i,this._typeahead?.setCurrentSelectedItemIndex(i))}_setTypeAhead(n){this._typeahead=new $s(this._items,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(n){for(let e=n+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return n}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let n=this._activeItem.getParent();if(!n||this._skipPredicateFn(n))return;this.focusItem(n)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?Ca(this._activeItem.getChildren()).pipe(Ze(1)).subscribe(n=>{let e=n.find(i=>!this._skipPredicateFn(i));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(n){return typeof n.isDisabled=="boolean"?n.isDisabled:n.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let n=this._activeItem.getParent(),e;n?e=Ca(n.getChildren()):e=Te(this._items.filter(i=>i.getParent()===null)),e.pipe(Ze(1)).subscribe(i=>{for(let r of i)r.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function MB(){return(t,n)=>new kv(t,n)}var gS=new D("tree-key-manager",{providedIn:"root",factory:MB});var bS=" ";function Ws(t,n,e){let i=Cf(t,n);e=e.trim(),!i.some(r=>r.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(bS)))}function go(t,n,e){let i=Cf(t,n);e=e.trim();let r=i.filter(o=>o!==e);r.length?t.setAttribute(n,r.join(bS)):t.removeAttribute(n)}function Cf(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var vS="cdk-describedby-message",Df="cdk-describedby-host",Rv=0,yS=(()=>{class t{_platform=d(Ee);_document=d(me);_messageRegistry=new Map;_messagesContainer=null;_id=`${Rv++}`;constructor(){d(Ke).load(er),this._id=d(hn)+"-"+Rv++}describe(e,i,r){if(!this._canBeDescribed(e,i))return;let o=Av(i,r);typeof i!="string"?(_S(i,this._id),this._messageRegistry.set(o,{messageElement:i,referenceCount:0})):this._messageRegistry.has(o)||this._createMessageElement(i,r),this._isElementDescribedByMessage(e,o)||this._addMessageReference(e,o)}removeDescription(e,i,r){if(!i||!this._isElementNode(e))return;let o=Av(i,r);if(this._isElementDescribedByMessage(e,o)&&this._removeMessageReference(e,o),typeof i=="string"){let a=this._messageRegistry.get(o);a&&a.referenceCount===0&&this._deleteMessageElement(o)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Df}="${this._id}"]`);for(let i=0;ir.indexOf(vS)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let r=this._messageRegistry.get(i);Ws(e,"aria-describedby",r.messageElement.id),e.setAttribute(Df,this._id),r.referenceCount++}_removeMessageReference(e,i){let r=this._messageRegistry.get(i);r.referenceCount--,go(e,"aria-describedby",r.messageElement.id),e.removeAttribute(Df)}_isElementDescribedByMessage(e,i){let r=Cf(e,"aria-describedby"),o=this._messageRegistry.get(i),a=o&&o.messageElement.id;return!!a&&r.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let r=i==null?"":`${i}`.trim(),o=e.getAttribute("aria-label");return r?!o||o.trim()!==r:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Av(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function _S(t,n){t.id||(t.id=`${vS}-${n}-${Rv++}`)}var Ti=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Ti||{}),wf,wa;function Ef(){if(wa==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return wa=!1,wa;if("scrollBehavior"in document.documentElement.style)wa=!0;else{let t=Element.prototype.scrollTo;t?wa=!/\{\s*\[native code\]\s*\}/.test(t.toString()):wa=!1}}return wa}function qs(){if(typeof document!="object"||!document)return Ti.NORMAL;if(wf==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),wf=Ti.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,wf=t.scrollLeft===0?Ti.NEGATED:Ti.INVERTED),t.remove()}return wf}function Nv(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Ys,DS=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Fv(){if(Ys)return Ys;if(typeof document!="object"||!document)return Ys=new Set(DS),Ys;let t=document.createElement("input");return Ys=new Set(DS.filter(n=>(t.setAttribute("type",n),t.type===n))),Ys}var CS={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var kB=new D("MATERIAL_ANIMATIONS");var wS=null;function AB(){return d(kB,{optional:!0})?.animationsDisabled||d(Jr,{optional:!0})==="NoopAnimations"?"di-disabled":(wS??=d(ff).matchMedia("(prefers-reduced-motion)").matches,wS?"reduced-motion":"enabled")}function $e(){return AB()!=="enabled"}function gt(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Nt(t){return t!=null&&`${t}`!="false"}var ti=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(ti||{}),Pv=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ti.HIDDEN;constructor(n,e,i,r=!1){this._renderer=n,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=r}fadeOut(){this._renderer.fadeOutRipple(this)}},ES=mo({passive:!0,capture:!0}),Lv=class{_events=new Map;addHandler(n,e,i,r){let o=this._events.get(e);if(o){let a=o.get(i);a?a.add(r):o.set(i,new Set([r]))}else this._events.set(e,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,ES)})}removeHandler(n,e,i){let r=this._events.get(n);if(!r)return;let o=r.get(e);o&&(o.delete(i),o.size===0&&r.delete(e),r.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,ES)))}_delegateEventHandler=n=>{let e=Bt(n);e&&this._events.get(n.type)?.forEach((i,r)=>{(r===e||r.contains(e))&&i.forEach(o=>o.handleEvent(n))})}},Lc={enterDuration:225,exitDuration:150},RB=800,xS=mo({passive:!0,capture:!0}),IS=["mousedown","touchstart"],TS=["mouseup","mouseleave","touchend","touchcancel"],OB=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} `],encapsulation:2,changeDetection:0})}return t})(),Ea=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Lv;constructor(n,e,i,r,o){this._target=n,this._ngZone=e,this._platform=r,r.isBrowser&&(this._containerElement=cn(i)),o&&o.get(Ke).load(OB)}fadeInRipple(n,e,i={}){let r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=V(V({},Lc),i.animation);i.centered&&(n=r.left+r.width/2,e=r.top+r.height/2);let a=i.radius||NB(n,e,r),s=n-r.left,l=e-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${s-a}px`,u.style.top=`${l-a}px`,u.style.height=`${a*2}px`,u.style.width=`${a*2}px`,i.color!=null&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let m=window.getComputedStyle(u),h=m.transitionProperty,f=m.transitionDuration,g=h==="none"||f==="0s"||f==="0s, 0s"||r.width===0&&r.height===0,v=new Pv(this,u,i,g);u.style.transform="scale3d(1, 1, 1)",v.state=ti.FADING_IN,i.persistent||(this._mostRecentTransientRipple=v);let E=null;return!g&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let T=()=>{E&&(E.fallbackTimer=null),clearTimeout(Re),this._finishRippleTransition(v)},ne=()=>this._destroyRipple(v),Re=setTimeout(ne,c+100);u.addEventListener("transitionend",T),u.addEventListener("transitioncancel",ne),E={onTransitionEnd:T,onTransitionCancel:ne,fallbackTimer:Re}}),this._activeRipples.set(v,E),(g||!c)&&this._finishRippleTransition(v),v}fadeOutRipple(n){if(n.state===ti.FADING_OUT||n.state===ti.HIDDEN)return;let e=n.element,i=V(V({},Lc),n.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",n.state=ti.FADING_OUT,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=cn(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,IS.forEach(i=>{t._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{TS.forEach(e=>{this._triggerElement.addEventListener(e,this,xS)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===ti.FADING_IN?this._startFadeOutTransition(n):n.state===ti.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=ti.VISIBLE,!i&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=ti.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Ac(n),i=this._lastTouchStartEvent&&Date.now(){let e=n.state===ti.VISIBLE||n.config.terminateOnPointerUp&&n.state===ti.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(IS.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(TS.forEach(e=>n.removeEventListener(e,this,xS)),this._pointerUpEventsRegistered=!1))}};function NB(t,n,e){let i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),r=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+r*r)}var Vc=new D("mat-ripple-global-options"),Ks=(()=>{class t{_elementRef=d(N);_animationsDisabled=$e();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=d(F),i=d(Ee),r=d(Vc,{optional:!0}),o=d(U);this._globalOptions=r||{},this._rippleRenderer=new Ea(this,e,this._elementRef,i,o)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:V(V(V({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,r){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,V(V({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,V(V({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,r){i&2&&K("mat-ripple-unbounded",r.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var FB={capture:!0},PB=["focus","mousedown","mouseenter","touchstart"],Vv="mat-ripple-loader-uninitialized",Bv="mat-ripple-loader-class-name",SS="mat-ripple-loader-centered",xf="mat-ripple-loader-disabled",MS=(()=>{class t{_document=d(me);_animationsDisabled=$e();_globalRippleOptions=d(Vc,{optional:!0});_platform=d(Ee);_ngZone=d(F);_injector=d(U);_eventCleanups;_hosts=new Map;constructor(){let e=d(ct).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>PB.map(i=>e.listen(this._document,i,this._onInteraction,FB)))}ngOnDestroy(){let e=this._hosts.keys();for(let i of e)this.destroyRipple(i);this._eventCleanups.forEach(i=>i())}configureRipple(e,i){e.setAttribute(Vv,this._globalRippleOptions?.namespace??""),(i.className||!e.hasAttribute(Bv))&&e.setAttribute(Bv,i.className||""),i.centered&&e.setAttribute(SS,""),i.disabled&&e.setAttribute(xf,"")}setDisabled(e,i){let r=this._hosts.get(e);r?(r.target.rippleDisabled=i,!i&&!r.hasSetUpEvents&&(r.hasSetUpEvents=!0,r.renderer.setupTriggerEvents(e))):i?e.setAttribute(xf,""):e.removeAttribute(xf)}_onInteraction=e=>{let i=Bt(e);if(i instanceof HTMLElement){let r=i.closest(`[${Vv}="${this._globalRippleOptions?.namespace??""}"]`);r&&this._createRipple(r)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let i=this._document.createElement("span");i.classList.add("mat-ripple",e.getAttribute(Bv)),e.append(i);let r=this._globalRippleOptions,o=this._animationsDisabled?0:r?.animation?.enterDuration??Lc.enterDuration,a=this._animationsDisabled?0:r?.animation?.exitDuration??Lc.exitDuration,s={rippleDisabled:this._animationsDisabled||r?.disabled||e.hasAttribute(xf),rippleConfig:{centered:e.hasAttribute(SS),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:o,exitDuration:a}}},l=new Ea(s,this._ngZone,i,this._platform,this._injector),c=!s.rippleDisabled;c&&l.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:l,hasSetUpEvents:c}),e.removeAttribute(Vv)}destroyRipple(e){let i=this._hosts.get(e);i&&(i.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ni=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(i,r){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return t})();var LB=["mat-icon-button",""],VB=["*"],BB=new D("MAT_BUTTON_CONFIG");function kS(t){return t==null?void 0:sn(t)}var If=(()=>{class t{_elementRef=d(N);_ngZone=d(F);_animationsDisabled=$e();_config=d(BB,{optional:!0});_focusMonitor=d(Jn);_cleanupClick;_renderer=d(Pe);_rippleLoader=d(MS);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){d(Ke).load(ni);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",i){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,i):this._elementRef.nativeElement.focus(i)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(i,r){i&2&&(W("disabled",r._getDisabledAttribute())("aria-disabled",r._getAriaDisabled())("tabindex",r._getTabIndex()),yi(r.color?"mat-"+r.color:""),K("mat-mdc-button-disabled",r.disabled)("mat-mdc-button-disabled-interactive",r.disabledInteractive)("mat-unthemed",!r.color)("_mat-animation-noopable",r._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",Q],disabled:[2,"disabled","disabled",Q],ariaDisabled:[2,"aria-disabled","ariaDisabled",Q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q],tabIndex:[2,"tabIndex","tabIndex",kS],_tabindex:[2,"tabindex","_tabindex",kS]}})}return t})(),_o=(()=>{class t extends If{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ye],attrs:LB,ngContentSelectors:VB,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(je(),qt(0,"span",0),fe(1),qt(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} `],encapsulation:2,changeDetection:0})}return t})();var jB=new D("cdk-dir-doc",{providedIn:"root",factory:HB});function HB(){return d(me)}var zB=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function AS(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?zB.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var et=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Me("ltr");change=new R;constructor(){let e=d(jB,{optional:!0});if(e){let i=e.body?e.body.dir:null,r=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(AS(i||r||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bo=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();var he=(()=>{class t{constructor(){d(pf)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[bo,bo]})}return t})();var tr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,he]})}return t})();var UB=["matButton",""],NS=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],FS=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var $B=["mat-mini-fab",""],GB=`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} `,RS=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),Bn=(()=>{class t extends If{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=WB(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let i=this._elementRef.nativeElement.classList,r=this._appearance?RS.get(this._appearance):null,o=RS.get(e);r&&i.remove(...r),i.add(...o),this._appearance=e}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[ye],attrs:UB,ngContentSelectors:FS,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(je(NS),qt(0,"span",0),fe(1),Gt(2,"span",1),fe(3,1),Wt(),fe(4,2),qt(5,"span",2)(6,"span",3)),i&2&&K("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} `],encapsulation:2,changeDetection:0})}return t})();function WB(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var qB=new D("mat-mdc-fab-default-options",{providedIn:"root",factory:PS});function PS(){return{color:"accent"}}var OS=PS();var LS=(()=>{class t extends If{_options=d(qB,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||OS,this.color=this._options.color||OS.color}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[ye],attrs:$B,ngContentSelectors:FS,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(i,r){i&1&&(je(NS),qt(0,"span",0),fe(1),Gt(2,"span",1),fe(3,1),Wt(),fe(4,2),qt(5,"span",2)(6,"span",3)),i&2&&K("mdc-button__ripple",!r._isFab)("mdc-fab__ripple",r._isFab)},styles:[GB],encapsulation:2,changeDetection:0})}return t})();var vn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,tr,he]})}return t})();var Tf=(()=>{class t{_animationsDisabled=$e();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(i,r){i&2&&K("mat-pseudo-checkbox-indeterminate",r.state==="indeterminate")("mat-pseudo-checkbox-checked",r.state==="checked")("mat-pseudo-checkbox-disabled",r.disabled)("mat-pseudo-checkbox-minimal",r.appearance==="minimal")("mat-pseudo-checkbox-full",r.appearance==="full")("_mat-animation-noopable",r._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(i,r){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} `],encapsulation:2,changeDetection:0})}return t})();var YB=["text"],KB=[[["mat-icon"]],"*"],QB=["mat-icon","*"];function ZB(t,n){if(t&1&&O(0,"mat-pseudo-checkbox",1),t&2){let e=y();C("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function XB(t,n){if(t&1&&O(0,"mat-pseudo-checkbox",3),t&2){let e=y();C("disabled",e.disabled)}}function JB(t,n){if(t&1&&(_(0,"span",4),L(1),b()),t&2){let e=y();p(),qe("(",e.group.label,")")}}var jc=new D("MAT_OPTION_PARENT_COMPONENT"),Hc=new D("MatOptgroup");var Bc=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},jn=(()=>{class t{_element=d(N);_changeDetectorRef=d(Ae);_parent=d(jc,{optional:!0});group=d(Hc,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=d(Qe).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Me(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new R;_text;_stateChanges=new S;constructor(){let e=d(Ke);e.load(ni),e.load(er),this._signalDisableRipple=!!this._parent&&Yi(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,i){let r=this._getHostElement();typeof r.focus=="function"&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Je(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Bc(this,e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-option"]],viewQuery:function(i,r){if(i&1&&ee(YB,7),i&2){let o;j(o=H())&&(r._text=o.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(i,r){i&1&&I("click",function(){return r._selectViaInteraction()})("keydown",function(a){return r._handleKeydown(a)}),i&2&&(Ot("id",r.id),W("aria-selected",r.selected)("aria-disabled",r.disabled.toString()),K("mdc-list-item--selected",r.selected)("mat-mdc-option-multiple",r.multiple)("mat-mdc-option-active",r.active)("mdc-list-item--disabled",r.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",Q]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:QB,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(i,r){i&1&&(je(KB),q(0,ZB,1,2,"mat-pseudo-checkbox",1),fe(1),_(2,"span",2,0),fe(4,1),b(),q(5,XB,1,1,"mat-pseudo-checkbox",3),q(6,JB,2,1,"span",4),O(7,"div",5)),i&2&&(Y(r.multiple?0:-1),p(5),Y(!r.multiple&&r.selected&&!r.hideSingleSelectionIndicator?5:-1),p(),Y(r.group&&r.group._inert?6:-1),p(),C("matRippleTrigger",r._getHostElement())("matRippleDisabled",r.disabled||r.disableRipple))},dependencies:[Tf,Ks],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} `],encapsulation:2,changeDetection:0})}return t})();function Sf(t,n,e){if(e.length){let i=n.toArray(),r=e.toArray(),o=0;for(let a=0;ae+i?Math.max(0,t-i+n):e}function VS(t){return t&&typeof t.connect=="function"&&!(t instanceof bl)}var ej=20,xa=(()=>{class t{_ngZone=d(F);_platform=d(Ee);_renderer=d(ct).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new S;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let i=this.scrollContainers.get(e);i&&(i.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=ej){return this._platform.isBrowser?new te(i=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let r=e>0?this._scrolled.pipe($d(e)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Te()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(e,i){let r=this.getAncestorScrollContainers(e);return this.scrolled(i).pipe(ze(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(e){let i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,e)&&i.push(o)}),i}_scrollableContainsElement(e,i){let r=cn(i),o=e.getElementRef().nativeElement;do if(r==o)return!0;while(r=r.parentElement);return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jv=(()=>{class t{elementRef=d(N);scrollDispatcher=d(xa);ngZone=d(F);dir=d(et,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new S;_renderer=d(Pe);_cleanupScroll;_elementScrolled=new S;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let i=this.elementRef.nativeElement,r=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=r?e.end:e.start),e.right==null&&(e.right=r?e.start:e.end),e.bottom!=null&&(e.top=i.scrollHeight-i.clientHeight-e.bottom),r&&qs()!=Ti.NORMAL?(e.left!=null&&(e.right=i.scrollWidth-i.clientWidth-e.left),qs()==Ti.INVERTED?e.left=e.right:qs()==Ti.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=i.scrollWidth-i.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let i=this.elementRef.nativeElement;Ef()?i.scrollTo(e):(e.top!=null&&(i.scrollTop=e.top),e.left!=null&&(i.scrollLeft=e.left))}measureScrollOffset(e){let i="left",r="right",o=this.elementRef.nativeElement;if(e=="top")return o.scrollTop;if(e=="bottom")return o.scrollHeight-o.clientHeight-o.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?r:i:e=="end"&&(e=a?i:r),a&&qs()==Ti.INVERTED?e==i?o.scrollWidth-o.clientWidth-o.scrollLeft:o.scrollLeft:a&&qs()==Ti.NEGATED?e==i?o.scrollLeft+o.scrollWidth-o.clientWidth:-o.scrollLeft:e==i?o.scrollLeft:o.scrollWidth-o.clientWidth-o.scrollLeft}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),tj=20,nr=(()=>{class t{_platform=d(Ee);_listeners;_viewportSize;_change=new S;_document=d(me);constructor(){let e=d(F),i=d(ct).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let r=o=>this._change.next(o);this._listeners=[i.listen("window","resize",r),i.listen("window","orientationchange",r)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect(),a=-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,s=-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0;return{top:a,left:s}}change(e=tj){return e>0?this._change.pipe($d(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Si=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})(),Hv=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[bo,Si,bo,Si]})}return t})();var zc=class{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},ir=class extends zc{component;viewContainerRef;injector;projectableNodes;constructor(n,e,i,r){super(),this.component=n,this.viewContainerRef=e,this.injector=i,this.projectableNodes=r}},rr=class extends zc{templateRef;viewContainerRef;context;injector;constructor(n,e,i,r){super(),this.templateRef=n,this.viewContainerRef=e,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},zv=class extends zc{element;constructor(n){super(),this.element=n instanceof N?n.nativeElement:n}},Zs=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof ir)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof rr)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof zv)return this._attachedPortal=n,this.attachDomPortal(n)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},kf=class extends Zs{outletElement;_appRef;_defaultInjector;constructor(n,e,i){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=i}attachComponentPortal(n){let e;if(n.viewContainerRef){let i=n.injector||n.viewContainerRef.injector,r=i.get(Xr,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:i,ngModuleRef:r,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let i=this._appRef,r=n.injector||this._defaultInjector||U.NULL,o=r.get(st,i.injector);e=xm(n.component,{elementInjector:r,environmentInjector:o,projectableNodes:n.projectableNodes||void 0}),i.attachView(e.hostView),this.setDisposeFn(()=>{i.viewCount>0&&i.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,i=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=e.indexOf(i);r!==-1&&e.remove(r)}),this._attachedPortal=n,i}attachDomPortal=n=>{let e=n.element;e.parentNode;let i=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}};var vo=(()=>{class t extends Zs{_moduleRef=d(Xr,{optional:!0});_document=d(me);_viewContainerRef=d(ht);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new R;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let i=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,r=i.createComponent(e.component,{index:i.length,injector:e.injector||i.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return i!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(e){e.setAttachedHost(this);let i=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=i,this.attached.emit(i),i}attachDomPortal=e=>{let i=e.element;i.parentNode;let r=this._document.createComment("dom-portal");e.setAttachedHost(this),i.parentNode.insertBefore(r,i),this._getRootNode().appendChild(i),this._attachedPortal=e,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(i,r)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ye]})}return t})();var Xs=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();var BS=Ef();function Ta(t){return new Af(t.get(nr),t.get(me))}var Af=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=gt(-this._previousScrollPosition.left),n.style.top=gt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,i=n.style,r=e.style,o=i.scrollBehavior||"",a=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),BS&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),BS&&(i.scrollBehavior=o,r.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,i=this._viewportRuler.getViewportSize();return e.scrollHeight>i.height||e.scrollWidth>i.width}};function WS(t,n){return new Rf(t.get(xa),t.get(F),t.get(nr),n)}var Rf=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,i,r){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(ze(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var Uc=class{enable(){}disable(){}attach(){}};function Uv(t,n){return n.some(e=>{let i=t.bottome.bottom,o=t.righte.right;return i||r||o||a})}function jS(t,n){return n.some(e=>{let i=t.tope.bottom,o=t.lefte.right;return i||r||o||a})}function Zt(t,n){return new Of(t.get(xa),t.get(nr),t.get(F),n)}var Of=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,i,r){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=i,this._config=r}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Uv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},qS=(()=>{class t{_injector=d(U);constructor(){}noop=()=>new Uc;close=e=>WS(this._injector,e);block=()=>Ta(this._injector);reposition=e=>Zt(this._injector,e);static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),or=class{positionStrategy;scrollStrategy=new Uc;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let i of e)n[i]!==void 0&&(this[i]=n[i])}}};var Nf=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var YS=(()=>{class t{_attachedOverlays=[];_document=d(me);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let i=this._attachedOverlays.indexOf(e);i>-1&&this._attachedOverlays.splice(i,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),KS=(()=>{class t extends YS{_ngZone=d(F);_renderer=d(ct).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let i=this._attachedOverlays;for(let r=i.length-1;r>-1;r--)if(i[r]._keydownEvents.observers.length>0){this._ngZone.run(()=>i[r]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),QS=(()=>{class t extends YS{_platform=d(Ee);_ngZone=d(F);_renderer=d(ct).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let i=this._document.body,r={capture:!0},o=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[o.listen(i,"pointerdown",this._pointerDownListener,r),o.listen(i,"click",this._clickListener,r),o.listen(i,"auxclick",this._clickListener,r),o.listen(i,"contextmenu",this._clickListener,r)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=Bt(e)};_clickListener=e=>{let i=Bt(e),r=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:i;this._pointerDownEventTarget=null;let o=this._attachedOverlays.slice();for(let a=o.length-1;a>-1;a--){let s=o[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(HS(s.overlayElement,i)||HS(s.overlayElement,r))break;let l=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(e)):l.next(e)}};static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HS(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,i=n;for(;i;){if(i===t)return!0;i=e&&i instanceof ShadowRoot?i.host:i.parentNode}return!1}var ZS=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} `],encapsulation:2,changeDetection:0})}return t})(),Pf=(()=>{class t{_platform=d(Ee);_containerElement;_document=d(me);_styleLoader=d(Ke);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Nv()){let r=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let o=0;o{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Js=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new S;_attachments=new S;_detachments=new S;_positionStrategy;_scrollStrategy;_locationChanges=ge.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new S;_outsidePointerEvents=new S;_afterNextRenderRef;constructor(n,e,i,r,o,a,s,l,c,u=!1,m,h){this._portalOutlet=n,this._host=e,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._injector=m,this._renderer=h,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Dt(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=V(V({},this._config),n),this._updateElementSize()}setDirection(n){this._config=Ie(V({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=gt(this._config.width),n.height=gt(this._config.height),n.minWidth=gt(this._config.minWidth),n.minHeight=gt(this._config.minHeight),n.maxWidth=gt(this._config.maxWidth),n.maxHeight=gt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new $v(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,i){let r=kr(e||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=Dt(()=>{n=!0,this._detachContent()},{injector:this._injector})}catch(e){if(n)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.()}},zS="cdk-overlay-connected-position-bounding-box",ij=/([A-Za-z%]+)$/;function Do(t,n){return new $c(n,t.get(nr),t.get(me),t.get(Ee),t.get(Pf))}var $c=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new S;_resizeSubscription=ge.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,i,r,o){this._viewportRuler=e,this._document=i,this._platform=r,this._overlayContainer=o,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(zS),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[],a;for(let s of this._preferredPositions){let l=this._getOriginPoint(n,r,s),c=this._getOverlayPoint(l,e,s),u=this._getOverlayFit(c,e,i,s);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,l);return}if(this._canFitWithFlexibleDimensions(u,c,i)){o.push({position:s,origin:l,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(l,s)});continue}(!a||a.overlayFit.visibleAreal&&(l=u,s=c)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ia(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(zS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,i){let r;if(i.originX=="center")r=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;r=i.originX=="start"?a:s}e.left<0&&(r-=e.left);let o;return i.originY=="center"?o=n.top+n.height/2:o=i.originY=="top"?n.top:n.bottom,e.top<0&&(o-=e.top),{x:r,y:o}}_getOverlayPoint(n,e,i){let r;i.overlayX=="center"?r=-e.width/2:i.overlayX==="start"?r=this._isRtl()?-e.width:0:r=this._isRtl()?0:-e.width;let o;return i.overlayY=="center"?o=-e.height/2:o=i.overlayY=="top"?0:-e.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,e,i,r){let o=$S(e),{x:a,y:s}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(a+=l),c&&(s+=c);let u=0-a,m=a+o.width-i.width,h=0-s,f=s+o.height-i.height,g=this._subtractOverflows(o.width,u,m),v=this._subtractOverflows(o.height,h,f),E=g*v;return{visibleArea:E,isCompletelyWithinViewport:o.width*o.height===E,fitsInViewportVertically:v===o.height,fitsInViewportHorizontally:g==o.width}}_canFitWithFlexibleDimensions(n,e,i){if(this._hasFlexibleDimensions){let r=i.bottom-e.y,o=i.right-e.x,a=US(this._overlayRef.getConfig().minHeight),s=US(this._overlayRef.getConfig().minWidth),l=n.fitsInViewportVertically||a!=null&&a<=r,c=n.fitsInViewportHorizontally||s!=null&&s<=o;return l&&c}return!1}_pushOverlayOnScreen(n,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let r=$S(e),o=this._viewportRect,a=Math.max(n.x+r.width-o.width,0),s=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0),u=0,m=0;return r.width<=o.width?u=c||-a:u=n.xg&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-g/2)}let l=e.overlayX==="start"&&!r||e.overlayX==="end"&&r,c=e.overlayX==="end"&&!r||e.overlayX==="start"&&r,u,m,h;if(c)h=i.width-n.x+this._viewportMargin*2,u=n.x-this._viewportMargin;else if(l)m=n.x,u=i.right-n.x;else{let f=Math.min(i.right-n.x+i.left,n.x),g=this._lastBoundingBoxSize.width;u=f*2,m=n.x-f,u>g&&!this._isInitialRender&&!this._growAfterOpen&&(m=n.x-g/2)}return{top:a,left:m,bottom:s,right:h,width:u,height:o}}_setBoundingBoxStyles(n,e){let i=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=gt(i.height),r.top=gt(i.top),r.bottom=gt(i.bottom),r.width=gt(i.width),r.left=gt(i.left),r.right=gt(i.right),e.overlayX==="center"?r.alignItems="center":r.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?r.justifyContent="center":r.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",o&&(r.maxHeight=gt(o)),a&&(r.maxWidth=gt(a))}this._lastBoundingBoxSize=i,Ia(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ia(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ia(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Ia(i,this._getExactOverlayY(e,n,u)),Ia(i,this._getExactOverlayX(e,n,u))}else i.position="static";let s="",l=this._getOffset(e,"x"),c=this._getOffset(e,"y");l&&(s+=`translateX(${l}px) `),c&&(s+=`translateY(${c}px)`),i.transform=s.trim(),a.maxHeight&&(r?i.maxHeight=gt(a.maxHeight):o&&(i.maxHeight="")),a.maxWidth&&(r?i.maxWidth=gt(a.maxWidth):o&&(i.maxWidth="")),Ia(this._pane.style,i)}_getExactOverlayY(n,e,i){let r={top:"",bottom:""},o=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;r.bottom=`${a-(o.y+this._overlayRect.height)}px`}else r.top=gt(o.y);return r}_getExactOverlayX(n,e,i){let r={left:"",right:""},o=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;r.right=`${s-(o.x+this._overlayRect.width)}px`}else r.left=gt(o.x);return r}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:jS(n,i),isOriginOutsideView:Uv(n,i),isOverlayClipped:jS(e,i),isOverlayOutsideView:Uv(e,i)}}_subtractOverflows(n,...e){return e.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&kr(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof N)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+e,height:i,width:e}}};function Ia(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function US(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(ij);return!e||e==="px"?parseFloat(n):null}return t||null}function $S(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function rj(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var GS="cdk-global-overlay-wrapper";function Sa(t){return new Ff}var Ff=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(GS),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:a,maxHeight:s}=i,l=(r==="100%"||r==="100vw")&&(!a||a==="100%"||a==="100vw"),c=(o==="100%"||o==="100vh")&&(!s||s==="100%"||s==="100vh"),u=this._xPosition,m=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",f="",g="",v="";l?v="flex-start":u==="center"?(v="center",h?g=m:f=m):h?u==="left"||u==="end"?(v="flex-end",f=m):(u==="right"||u==="start")&&(v="flex-start",g=m):u==="left"||u==="start"?(v="flex-start",f=m):(u==="right"||u==="end")&&(v="flex-end",g=m),n.position=this._cssPosition,n.marginLeft=l?"0":f,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":g,e.justifyContent=v,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(GS),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},XS=(()=>{class t{_injector=d(U);constructor(){}global(){return Sa()}flexibleConnectedTo(e){return Do(this._injector,e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ar(t,n){t.get(Ke).load(ZS);let e=t.get(Pf),i=t.get(me),r=t.get(Qe),o=t.get(Ct),a=t.get(et),s=i.createElement("div"),l=i.createElement("div");l.id=r.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),s.appendChild(l),e.getContainerElement().appendChild(s);let c=new kf(l,o,t),u=new or(n),m=t.get(Pe,null,{optional:!0})||t.get(ct).createRenderer(null,null);return u.direction=u.direction||a.value,new Js(c,s,l,u,t.get(F),t.get(KS),i,t.get(Tm),t.get(QS),n?.disableAnimations??t.get(Jr,null,{optional:!0})==="NoopAnimations",t.get(st),m)}var JS=(()=>{class t{scrollStrategies=d(qS);_positionBuilder=d(XS);_injector=d(U);constructor(){}create(e){return ar(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),oj=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],eM=new D("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Zt(t)}}),yo=(()=>{class t{elementRef=d(N);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),Co=(()=>{class t{_dir=d(et,{optional:!0});_injector=d(U);_overlayRef;_templatePortal;_backdropSubscription=ge.EMPTY;_attachSubscription=ge.EMPTY;_detachSubscription=ge.EMPTY;_positionSubscription=ge.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(eM);_disposeOnNavigation=!1;_ngZone=d(F);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new R;positionChange=new R;attach=new R;detach=new R;overlayKeydown=new R;overlayOutsideClick=new R;constructor(){let e=d(Rt),i=d(ht);this._templatePortal=new rr(e,i),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=oj);let e=this._overlayRef=ar(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(i=>{this.overlayKeydown.next(i),i.keyCode===27&&!this.disableClose&&!Je(i)&&(i.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(i=>{let r=this._getOriginElement(),o=Bt(i);(!r||r!==o&&!r.contains(o))&&this.overlayOutsideClick.next(i)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),i=new or({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(i.width=this.width),(this.height||this.height===0)&&(i.height=this.height),(this.minWidth||this.minWidth===0)&&(i.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(i.minHeight=this.minHeight),this.backdropClass&&(i.backdropClass=this.backdropClass),this.panelClass&&(i.panelClass=this.panelClass),i}_updatePositionStrategy(e){let i=this.positions.map(r=>({originX:r.originX,originY:r.originY,overlayX:r.overlayX,overlayY:r.overlayY,offsetX:r.offsetX||this.offsetX,offsetY:r.offsetY||this.offsetY,panelClass:r.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(i).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=Do(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof yo?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof yo?this.origin.elementRef.nativeElement:this.origin instanceof N?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(Qh(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",Q],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",Q],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",Q],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",Q],push:[2,"cdkConnectedOverlayPush","push",Q],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",Q]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Be]})}return t})();function aj(t){let n=d(U);return()=>Zt(n)}var sj={provide:eM,useFactory:aj},un=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[JS,sj],imports:[bo,Xs,Hv,Hv]})}return t})();var Gv=class{_box;_destroyed=new S;_resizeSubject=new S;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new te(e=>{let i=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),i.unsubscribe(),this._elementObservables.delete(n)}}).pipe(ze(e=>e.some(i=>i.target===n)),qd({bufferSize:1,refCount:!0}),Se(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},tM=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=d(F);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,i){let r=i?.box||"content-box";return this._observers.has(r)||this._observers.set(r,new Gv(r)),this._observers.get(r).observe(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cj=["notch"],dj=["matFormFieldNotchedOutline",""],uj=["*"],nM=["iconPrefixContainer"],iM=["textPrefixContainer"],rM=["iconSuffixContainer"],oM=["textSuffixContainer"],mj=["textField"],fj=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],hj=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function pj(t,n){t&1&&O(0,"span",20)}function gj(t,n){if(t&1&&(_(0,"label",19),fe(1,1),q(2,pj,1,0,"span",20),b()),t&2){let e=y(2);C("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),W("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),Y(!e.hideRequiredMarker&&e._control.required?2:-1)}}function _j(t,n){if(t&1&&q(0,gj,3,5,"label",19),t&2){let e=y();Y(e._hasFloatingLabel()?0:-1)}}function bj(t,n){t&1&&O(0,"div",7)}function vj(t,n){}function yj(t,n){if(t&1&&Fe(0,vj,0,0,"ng-template",13),t&2){y(2);let e=He(1);C("ngTemplateOutlet",e)}}function Dj(t,n){if(t&1&&(_(0,"div",9),q(1,yj,1,1,null,13),b()),t&2){let e=y();C("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),Y(e._forceDisplayInfixLabel()?-1:1)}}function Cj(t,n){t&1&&(_(0,"div",10,2),fe(2,2),b())}function wj(t,n){t&1&&(_(0,"div",11,3),fe(2,3),b())}function Ej(t,n){}function xj(t,n){if(t&1&&Fe(0,Ej,0,0,"ng-template",13),t&2){y();let e=He(1);C("ngTemplateOutlet",e)}}function Ij(t,n){t&1&&(_(0,"div",14,4),fe(2,4),b())}function Tj(t,n){t&1&&(_(0,"div",15,5),fe(2,5),b())}function Sj(t,n){t&1&&O(0,"div",16)}function Mj(t,n){t&1&&fe(0,6)}function kj(t,n){if(t&1&&(_(0,"mat-hint",21),L(1),b()),t&2){let e=y(2);C("id",e._hintLabelId),p(),ie(e.hintLabel)}}function Aj(t,n){if(t&1&&(q(0,kj,2,2,"mat-hint",21),fe(1,7),O(2,"div",22),fe(3,8)),t&2){let e=y();Y(e.hintLabel?0:-1)}}var Ma=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["mat-label"]]})}return t})(),qv=new D("MatError"),Yv=(()=>{class t{id=d(Qe).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(i,r){i&2&&Ot("id",r.id)},inputs:{id:"id"},features:[pe([{provide:qv,useExisting:t}])]})}return t})(),Wv=(()=>{class t{align="start";id=d(Qe).getId("mat-mdc-hint-");static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(i,r){i&2&&(Ot("id",r.id),W("align",null),K("mat-mdc-form-field-hint-end",r.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),mM=new D("MatPrefix");var fM=new D("MatSuffix");var hM=new D("FloatingLabelParent"),aM=(()=>{class t{_elementRef=d(N);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d(tM);_ngZone=d(F);_parent=d(hM);_resizeSubscription=new ge;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Rj(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(i,r){i&2&&K("mdc-floating-label--float-above",r.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function Rj(t){let n=t;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let i=e.scrollWidth;return e.remove(),i}var sM="mdc-line-ripple--active",Lf="mdc-line-ripple--deactivating",lM=(()=>{class t{_elementRef=d(N);_cleanupTransitionEnd;constructor(){let e=d(F),i=d(Pe);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=i.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Lf),e.add(sM)}deactivate(){this._elementRef.nativeElement.classList.add(Lf)}_handleTransitionEnd=e=>{let i=this._elementRef.nativeElement.classList,r=i.contains(Lf);e.propertyName==="opacity"&&r&&i.remove(sM,Lf)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),cM=(()=>{class t{_elementRef=d(N);_ngZone=d(F);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,i=e.querySelector(".mdc-floating-label");i?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(i.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>i.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let i=this._notch.nativeElement;!this.open||!e?i.style.width="":i.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(i,r){if(i&1&&ee(cj,5),i&2){let o;j(o=H())&&(r._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(i,r){i&2&&K("mdc-notched-outline--notched",r.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:dj,ngContentSelectors:uj,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(i,r){i&1&&(je(),qt(0,"div",1),Gt(1,"div",2,0),fe(3),Wt(),qt(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),el=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t})}return t})();var wo=new D("MatFormField"),pM=new D("MAT_FORM_FIELD_DEFAULT_OPTIONS"),dM="fill",Oj="auto",uM="fixed",Nj="translateY(-50%)",Rr=(()=>{class t{_elementRef=d(N);_changeDetectorRef=d(Ae);_platform=d(Ee);_idGenerator=d(Qe);_ngZone=d(F);_defaults=d(pM,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=Zi("iconPrefixContainer");_textPrefixContainerSignal=Zi("textPrefixContainer");_iconSuffixContainerSignal=Zi("iconSuffixContainer");_textSuffixContainerSignal=Zi("textSuffixContainer");_prefixSuffixContainers=ke(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=gI(Ma);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Nt(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Oj}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let i=e||this._defaults?.appearance||dM;this._appearanceSignal.set(i)}_appearanceSignal=Me(dM);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||uM}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||uM}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new S;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=$e();constructor(){let e=this._defaults,i=d(et);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),ro(()=>this._currentDirection=i.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ke(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let i=this._control,r="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(r+e.controlType),i.controlType&&this._elementRef.nativeElement.classList.add(r+i.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=i.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=i.stateChanges.pipe(tt([void 0,void 0]),_e(()=>[i.errorState,i.userAriaDescribedBy]),Wd(),ze(([[o,a],[s,l]])=>o!==s||a!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),i.ngControl&&i.ngControl.valueChanges&&(this._valueChanges=i.ngControl.valueChanges.pipe(Se(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),at(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){CI({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ke(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let i=this._control?this._control.ngControl:null;return i&&i[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let o=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let i=this._control.describedByIds,r;if(i){let o=this._describedByIds||e;r=e.concat(i.filter(a=>a&&!o.includes(a)))}else r=e;this._control.setDescribedByIds(r),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,i=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=i?.getBoundingClientRect().width??0,l=r?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,u=this._currentDirection==="rtl"?"-1":"1",m=`${a+s}px`,f=`calc(${u} * (${m} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,g=`var(--mat-mdc-form-field-label-transform, ${Nj} translateX(${f}))`,v=a+s+l+c;return[g,v]}_writeOutlinedLabelStyles(e){if(e!==null){let[i,r]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=i),r!==null&&this._notchedOutline?._setMaxWidth(r)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let i=e.getRootNode();return i&&i!==e}return document.documentElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-form-field"]],contentQueries:function(i,r,o){if(i&1&&(sb(o,r._labelChild,Ma,5),We(o,el,5),We(o,mM,5),We(o,fM,5),We(o,qv,5),We(o,Wv,5)),i&2){As();let a;j(a=H())&&(r._formFieldControl=a.first),j(a=H())&&(r._prefixChildren=a),j(a=H())&&(r._suffixChildren=a),j(a=H())&&(r._errorChildren=a),j(a=H())&&(r._hintChildren=a)}},viewQuery:function(i,r){if(i&1&&(vi(r._iconPrefixContainerSignal,nM,5),vi(r._textPrefixContainerSignal,iM,5),vi(r._iconSuffixContainerSignal,rM,5),vi(r._textSuffixContainerSignal,oM,5),ee(mj,5),ee(nM,5),ee(iM,5),ee(rM,5),ee(oM,5),ee(aM,5),ee(cM,5),ee(lM,5)),i&2){As(4);let o;j(o=H())&&(r._textField=o.first),j(o=H())&&(r._iconPrefixContainer=o.first),j(o=H())&&(r._textPrefixContainer=o.first),j(o=H())&&(r._iconSuffixContainer=o.first),j(o=H())&&(r._textSuffixContainer=o.first),j(o=H())&&(r._floatingLabel=o.first),j(o=H())&&(r._notchedOutline=o.first),j(o=H())&&(r._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(i,r){i&2&&K("mat-mdc-form-field-label-always-float",r._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",r._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",r._hasIconSuffix)("mat-form-field-invalid",r._control.errorState)("mat-form-field-disabled",r._control.disabled)("mat-form-field-autofilled",r._control.autofilled)("mat-form-field-appearance-fill",r.appearance=="fill")("mat-form-field-appearance-outline",r.appearance=="outline")("mat-form-field-hide-placeholder",r._hasFloatingLabel()&&!r._shouldLabelFloat())("mat-primary",r.color!=="accent"&&r.color!=="warn")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("ng-untouched",r._shouldForward("untouched"))("ng-touched",r._shouldForward("touched"))("ng-pristine",r._shouldForward("pristine"))("ng-dirty",r._shouldForward("dirty"))("ng-valid",r._shouldForward("valid"))("ng-invalid",r._shouldForward("invalid"))("ng-pending",r._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[pe([{provide:wo,useExisting:t},{provide:hM,useExisting:t}])],ngContentSelectors:hj,decls:19,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(i,r){if(i&1){let o=ve();je(fj),Fe(0,_j,1,1,"ng-template",null,0,Cr),_(2,"div",6,1),I("click",function(s){return M(o),k(r._control.onContainerClick(s))}),q(4,bj,1,0,"div",7),_(5,"div",8),q(6,Dj,2,2,"div",9),q(7,Cj,3,0,"div",10),q(8,wj,3,0,"div",11),_(9,"div",12),q(10,xj,1,1,null,13),fe(11),b(),q(12,Ij,3,0,"div",14),q(13,Tj,3,0,"div",15),b(),q(14,Sj,1,0,"div",16),b(),_(15,"div",17)(16,"div",18),q(17,Mj,1,0)(18,Aj,4,1),b()()}if(i&2){let o;p(2),K("mdc-text-field--filled",!r._hasOutline())("mdc-text-field--outlined",r._hasOutline())("mdc-text-field--no-label",!r._hasFloatingLabel())("mdc-text-field--disabled",r._control.disabled)("mdc-text-field--invalid",r._control.errorState),p(2),Y(!r._hasOutline()&&!r._control.disabled?4:-1),p(2),Y(r._hasOutline()?6:-1),p(),Y(r._hasIconPrefix?7:-1),p(),Y(r._hasTextPrefix?8:-1),p(2),Y(!r._hasOutline()||r._forceDisplayInfixLabel()?10:-1),p(2),Y(r._hasTextSuffix?12:-1),p(),Y(r._hasIconSuffix?13:-1),p(),Y(r._hasOutline()?-1:14),p(),K("mat-mdc-form-field-subscript-dynamic-size",r.subscriptSizing==="dynamic");let a=r._getSubscriptMessageType();p(),K("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),p(),Y((o=a)==="error"?17:o==="hint"?18:-1)}},dependencies:[aM,cM,fc,lM,Wv],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} `],encapsulation:2,changeDetection:0})}return t})();var Vf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he]})}return t})();var tl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[tr,he,Vf,jn]})}return t})();var Fj=["panel"],Pj=["*"];function Lj(t,n){if(t&1&&(Gt(0,"div",1,0),fe(2),Wt()),t&2){let e=n.id,i=y();yi(i._classList),K("mat-mdc-autocomplete-visible",i.showPanel)("mat-mdc-autocomplete-hidden",!i.showPanel)("mat-autocomplete-panel-animations-enabled",!i._animationsDisabled)("mat-primary",i._color==="primary")("mat-accent",i._color==="accent")("mat-warn",i._color==="warn"),Ot("id",i.id),W("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(e))}}var Kv=class{source;option;constructor(n,e){this.source=n,this.option=e}},gM=new D("mat-autocomplete-default-options",{providedIn:"root",factory:Vj});function Vj(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var Eo=(()=>{class t{_changeDetectorRef=d(Ae);_elementRef=d(N);_defaults=d(gM);_animationsDisabled=$e();_activeOptionChanges=ge.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new R;opened=new R;closed=new R;optionActivated=new R;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=d(Qe).getId("mat-autocomplete-");inertGroups;constructor(){let e=d(Ee);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Da(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let i=new Kv(this,e);this.optionSelected.emit(i)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(i,r,o){if(i&1&&(We(o,jn,5),We(o,Hc,5)),i&2){let a;j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ee(Rt,7),ee(Fj,5)),i&2){let o;j(o=H())&&(r.template=o.first),j(o=H())&&(r.panel=o.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",Q],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",Q],requireSelection:[2,"requireSelection","requireSelection",Q],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",Q],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Q]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[pe([{provide:jc,useExisting:t}])],ngContentSelectors:Pj,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(i,r){i&1&&(je(),xs(0,Lj,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none} `],encapsulation:2,changeDetection:0})}return t})();var Bj={provide:Ji,useExisting:lt(()=>Or),multi:!0};var _M=new D("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Zt(t)}});function jj(t){let n=d(U);return()=>Zt(n)}var Hj={provide:_M,deps:[],useFactory:jj},Or=(()=>{class t{_environmentInjector=d(st);_element=d(N);_injector=d(U);_viewContainerRef=d(ht);_zone=d(F);_changeDetectorRef=d(Ae);_dir=d(et,{optional:!0});_formField=d(wo,{optional:!0,host:!0});_viewportRuler=d(nr);_scrollStrategy=d(_M);_renderer=d(Pe);_animationsDisabled=$e();_defaults=d(gM,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new S;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=ge.EMPTY;_breakpointObserver=d(Fc);_handsetLandscapeSubscription=ge.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new S;_overlayPanelClass=kr(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&go(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return at(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(ze(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(ze(()=>this._overlayAttached)):Te()).pipe(_e(e=>e instanceof Bc?e:null))}optionSelections=dr(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(tt(e),At(()=>at(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(At(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new te(e=>{let i=o=>{let a=Bt(o),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,l=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!l||!l.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(o)},r=[this._renderer.listen("document","click",i),this._renderer.listen("document","auxclick",i),this._renderer.listen("document","touchend",i)];return()=>{r.forEach(o=>o())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let i=e,r=i.keyCode,o=Je(i);if(r===27&&!o&&i.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&r===13&&this.panelOpen&&!o)this.activeOption._selectViaInteraction(),this._resetActiveItem(),i.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=r===38||r===40;r===9||s&&!o&&this.panelOpen?this.autocomplete._keyManager.onKeydown(i):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let i=e.target,r=i.value;if(i.type==="number"&&(r=r==""?null:parseFloat(r)),this._previousValue!==r){if(this._previousValue=r,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(r),!r)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let o=this.autocomplete.options?.find(a=>a.selected);if(o){let a=this._getDisplayValue(o.value);r!==a&&o.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let o=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(o)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return Ln()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new te(r=>{Dt(()=>{r.next()},{injector:this._environmentInjector})}),i=this.autocomplete.options?.changes.pipe(Vi(()=>this._positionStrategy.reapplyLastPosition()),qh(0))??Te();return at(e,i).pipe(At(()=>this._zone.run(()=>{let r=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),r!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Ze(1)).subscribe(r=>this._setValueAndClose(r))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let i=this.autocomplete;return i&&i.displayWith?i.displayWith(e):e}_assignOptionValue(e){let i=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(i??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let i=this.autocomplete,r=e?e.source:this._pendingAutoselectedOption;r?(this._clearPreviousSelectedOption(r),this._assignOptionValue(r.value),this._onChange(r.value),i._emitSelectEvent(r),this._element.nativeElement.focus()):i.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,i){this.autocomplete?.options?.forEach(r=>{r!==e&&r.selected&&r.deselect(i)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let i=this.autocomplete.id;Ws(this._trackedModal,"aria-owns",i)}}_attachOverlay(e){this.autocomplete;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new rr(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),i=ar(this._injector,this._getOverlayConfig()),this._overlayRef=i,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(CS.HandsetLandscape).subscribe(o=>{o.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),i&&!i.hasAttached()&&(i.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let r=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&r!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Je(e)||e.keyCode===38&&Je(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new or({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=Do(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,o=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}],a;this.position==="above"?a=o:this.position==="below"?a=i:a=[...i,...o],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let i=-1;for(let r=0;r .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=this.autocomplete.id;this._trackedModal&&go(this._trackedModal,"aria-owns",i),Ws(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;go(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(i,r){i&1&&I("focusin",function(){return r._handleFocus()})("blur",function(){return r._onTouched()})("input",function(a){return r._handleInput(a)})("keydown",function(a){return r._handleKeydown(a)})("click",function(){return r._handleClick()}),i&2&&W("autocomplete",r.autocompleteAttribute)("role",r.autocompleteDisabled?null:"combobox")("aria-autocomplete",r.autocompleteDisabled?null:"list")("aria-activedescendant",r.panelOpen&&r.activeOption?r.activeOption.id:null)("aria-expanded",r.autocompleteDisabled?null:r.panelOpen.toString())("aria-controls",r.autocompleteDisabled||!r.panelOpen||r.autocomplete==null?null:r.autocomplete.id)("aria-haspopup",r.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",Q]},exportAs:["matAutocompleteTrigger"],features:[pe([Bj]),Be]})}return t})(),Bf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[Hj],imports:[un,tl,he,Si,tl,he]})}return t})();var zj=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(i,r){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} `],encapsulation:2,changeDetection:0})}return t})(),Uj={passive:!0},vM=(()=>{class t{_platform=d(Ee);_ngZone=d(F);_renderer=d(ct).createRenderer(null,null);_styleLoader=d(Ke);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return cr;this._styleLoader.load(zj);let i=cn(e),r=this._monitoredElements.get(i);if(r)return r.subject;let o=new S,a="cdk-text-field-autofilled",s=c=>{c.animationName==="cdk-text-field-autofill-start"&&!i.classList.contains(a)?(i.classList.add(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&i.classList.contains(a)&&(i.classList.remove(a),this._ngZone.run(()=>o.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(i.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(i,"animationstart",s,Uj)));return this._monitoredElements.set(i,{subject:o,unlisten:l}),o}stopMonitoring(e){let i=cn(e),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((e,i)=>this.stopMonitoring(i))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();var DM=new D("MAT_INPUT_VALUE_ACCESSOR");var jf=(()=>{class t{isErrorState(e,i){return!!(e&&e.invalid&&(e.touched||i&&i.submitted))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nl=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,i,r,o){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=i,this._parentForm=r,this._stateChanges=o}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,i=this.matcher||this._defaultMatcher,r=this.ngControl?this.ngControl.control:null,o=i?.isErrorState(r,e)??!1;o!==n&&(this.errorState=o,this._stateChanges.next())}};var ri=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,Us,Rr,he]})}return t})();var $j=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Gj=new D("MAT_INPUT_CONFIG"),Hf=(()=>{class t{_elementRef=d(N);_platform=d(Ee);ngControl=d(xi,{optional:!0,self:!0});_autofillMonitor=d(vM);_ngZone=d(F);_formField=d(wo,{optional:!0});_renderer=d(Pe);_uid=d(Qe).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(Gj,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new S;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Nt(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Xn.required)??!1}set required(e){this._required=Nt(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Fv().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Nt(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Fv().has(e));constructor(){let e=d(ba,{optional:!0}),i=d(kc,{optional:!0}),r=d(jf),o=d(DM,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();o?Yi(o.value)?this._signalBasedValueAccessor=o:this._inputValueAccessor=o:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new nl(r,this.ngControl,i,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&ro(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let i=this._elementRef.nativeElement;i.type==="number"?(i.type="text",i.setSelectionRange(0,0),i.type="number"):i.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let i=this._elementRef.nativeElement;this._previousPlaceholder=e,e?i.setAttribute("placeholder",e):i.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){$j.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,i=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&i&&i.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let i=this._elementRef.nativeElement;e.length?i.setAttribute("aria-describedby",e.join(" ")):i.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let i=e.target;!i.value&&i.selectionStart===0&&i.selectionEnd===0&&(i.setSelectionRange(1,1),i.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(i,r){i&1&&I("focus",function(){return r._focusChanged(!0)})("blur",function(){return r._focusChanged(!1)})("input",function(){return r._onInput()}),i&2&&(Ot("id",r.id)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),W("name",r.name||null)("readonly",r._getReadonlyAttribute())("aria-disabled",r.disabled&&r.disabledInteractive?"true":null)("aria-invalid",r.empty&&r.required?null:r.errorState)("aria-required",r.required)("id",r.id),K("mat-input-server",r._isServer)("mat-mdc-form-field-textarea-control",r._isInFormField&&r._isTextarea)("mat-mdc-form-field-input-control",r._isInFormField)("mat-mdc-input-disabled-interactive",r.disabledInteractive)("mdc-text-field__input",r._isInFormField)("mat-mdc-native-select-inline",r._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]},exportAs:["matInput"],features:[pe([{provide:el,useExisting:t}]),Be]})}return t})(),il=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,ri,ri,yM,he]})}return t})();var Zv=(()=>{class t{_listeners=[];notify(e,i){for(let r of this._listeners)r(e,i)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(i=>e!==i)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oi=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new S;constructor(n=!1,e,i=!0,r){this._multiple=n,this._emitChanges=i,this.compareWith=r,e&&e.length&&(n?e.forEach(o=>this._markSelected(o)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(i=>this._markSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(i=>this._unmarkSelected(i));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,i=new Set(n.map(o=>this._getConcreteValue(o)));n.forEach(o=>this._markSelected(o)),e.filter(o=>!i.has(this._getConcreteValue(o,i))).forEach(o=>this._unmarkSelected(o));let r=this._hasQueuedChanges();return this._emitChangeEvent(),r}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let i of e)if(this.compareWith(n,i))return i;return n}else return n}};var Wj=["button"],qj=["*"];function Yj(t,n){if(t&1&&(_(0,"div",2),O(1,"mat-pseudo-checkbox",6),b()),t&2){let e=y();p(),C("disabled",e.disabled)}}var wM=new D("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Kj});function Kj(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var EM=new D("MatButtonToggleGroup"),Qj={provide:Ji,useExisting:lt(()=>Xv),multi:!0},zf=class{source;value;constructor(n,e){this.source=n,this.value=e}},Xv=(()=>{class t{_changeDetector=d(Ae);_dir=d(et,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}_name=d(Qe).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(i=>i.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new R;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new R;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let e=d(wM,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new oi(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled||Je(e))return;let r=e.target.id,o=this._buttonToggles.toArray().findIndex(s=>s.buttonId===r),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(o)||null;break;case 38:a=this._getNextButton(o,-1);break;case 37:a=this._getNextButton(o,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(o,1);break;case 39:a=this._getNextButton(o,this.dir==="ltr"?1:-1);break;default:return}a&&(e.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(e){let i=new zf(e,this.value);this._rawValue=i.value,this._controlValueAccessorChangeFn(i.value),this.change.emit(i)}_syncButtonToggle(e,i,r=!1,o=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?i?this._selectionModel.select(e):this._selectionModel.deselect(e):o=!0,o?Promise.resolve().then(()=>this._updateModelValue(e,r)):this._updateModelValue(e,r)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(i=>e.value!=null&&i===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;ethis._selectValue(r,i))):(this._clearSelection(),this._selectValue(e,i)),!this.multiple&&i.every(r=>r.tabIndex===-1)){for(let r of i)if(!r.disabled){r.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,i){for(let r of i)if(r.value===e){r.checked=!0,this._selectionModel.select(r),this.multiple||(r.tabIndex=0);break}}_updateModelValue(e,i){i&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(i,r,o){if(i&1&&We(o,Uf,5),i&2){let a;j(a=H())&&(r._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(i,r){i&1&&I("keydown",function(a){return r._keydown(a)}),i&2&&(W("role",r.multiple?"group":"radiogroup")("aria-disabled",r.disabled),K("mat-button-toggle-vertical",r.vertical)("mat-button-toggle-group-appearance-standard",r.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",Q],value:"value",multiple:[2,"multiple","multiple",Q],disabled:[2,"disabled","disabled",Q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Q],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",Q]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[pe([Qj,{provide:EM,useExisting:t}])]})}return t})(),Uf=(()=>{class t{_changeDetectorRef=d(Ae);_elementRef=d(N);_focusMonitor=d(Jn);_idGenerator=d(Qe);_animationDisabled=$e();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new R;constructor(){d(Ke).load(ni);let e=d(EM,{optional:!0}),i=d(new Kn("tabindex"),{optional:!0})||"",r=d(wM,{optional:!0});this._tabIndex=Me(parseInt(i)||0),this.buttonToggleGroup=e,this.appearance=r&&r.appearance?r.appearance:"standard",this.disabledInteractive=r?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let i=this.buttonToggleGroup._buttonToggles.find(r=>r.tabIndex===0);i&&(i.tabIndex=-1),this.tabIndex=0}this.change.emit(new zf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(i,r){if(i&1&&ee(Wj,5),i&2){let o;j(o=H())&&(r._buttonElement=o.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(i,r){i&1&&I("focus",function(){return r.focus()}),i&2&&(W("aria-label",null)("aria-labelledby",null)("id",r.id)("name",null),K("mat-button-toggle-standalone",!r.buttonToggleGroup)("mat-button-toggle-checked",r.checked)("mat-button-toggle-disabled",r.disabled)("mat-button-toggle-disabled-interactive",r.disabledInteractive)("mat-button-toggle-appearance-standard",r.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",Q],appearance:"appearance",checked:[2,"checked","checked",Q],disabled:[2,"disabled","disabled",Q],disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:qj,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(i,r){if(i&1){let o=ve();je(),_(0,"button",1,0),I("click",function(){return M(o),k(r._onButtonClick())}),q(2,Yj,2,1,"div",2),_(3,"span",3),fe(4),b()(),O(5,"span",4)(6,"span",5)}if(i&2){let o=He(1);C("id",r.buttonId)("disabled",r.disabled&&!r.disabledInteractive||null),W("role",r.isSingleSelector()?"radio":"button")("tabindex",r.disabled&&!r.disabledInteractive?-1:r.tabIndex)("aria-pressed",r.isSingleSelector()?null:r.checked)("aria-checked",r.isSingleSelector()?r.checked:null)("name",r._getButtonName())("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),p(2),Y(r.buttonToggleGroup&&(!r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideSingleSelectionIndicator||r.buttonToggleGroup.multiple&&!r.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),p(4),C("matRippleTrigger",o)("matRippleDisabled",r.disableRipple||r.disabled)}},dependencies:[Ks,Tf],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))} `],encapsulation:2,changeDetection:0})}return t})(),xM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,tr,Uf,he]})}return t})();var Xj=["mat-internal-form-field",""],Jj=["*"],IM=(()=>{class t{labelPosition;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(i,r){i&2&&K("mdc-form-field--align-end",r.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:Xj,ngContentSelectors:Jj,decls:1,vars:0,template:function(i,r){i&1&&(je(),fe(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} `],encapsulation:2,changeDetection:0})}return t})();var ka=new D("MAT_DATE_LOCALE",{providedIn:"root",factory:eH});function eH(){return d(fa)}var rl="Method not implemented",_t=class{locale;_localeChanges=new S;localeChanges=this._localeChanges;setTime(n,e,i,r){throw new Error(rl)}getHours(n){throw new Error(rl)}getMinutes(n){throw new Error(rl)}getSeconds(n){throw new Error(rl)}parseTime(n,e){throw new Error(rl)}addSeconds(n,e){throw new Error(rl)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareDate(n,e):i==r}return n==e}sameTime(n,e){if(n&&e){let i=this.isValid(n),r=this.isValid(e);return i&&r?!this.compareTime(n,e):i==r}return n==e}clampDate(n,e,i){return e&&this.compareDate(n,e)<0?e:i&&this.compareDate(n,i)>0?i:n}},Nr=new D("mat-date-formats");var tH=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,nH=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Jv(t,n){let e=Array(t);for(let i=0;i{class t extends _t{useUtcForDisplay=!1;_matDateLocale=d(ka,{optional:!0});constructor(){super();let e=d(ka,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let i=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Jv(12,r=>this._format(i,new Date(2017,r,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Jv(31,i=>this._format(e,new Date(2017,0,i+1)))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Jv(7,r=>this._format(i,new Date(2017,0,r+1)))}getYearName(e){let i=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(i,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),i=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return i===7?0:i}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,i,r){let o=this._createDateWithOverflow(e,i,r);return o.getMonth()!=i,o}today(){return new Date}parse(e,i){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,i){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let r=new Intl.DateTimeFormat(this.locale,Ie(V({},i),{timeZone:"utc"}));return this._format(r,e)}addCalendarYears(e,i){return this.addCalendarMonths(e,i*12)}addCalendarMonths(e,i){let r=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+i,this.getDate(e));return this.getMonth(r)!=((this.getMonth(e)+i)%12+12)%12&&(r=this._createDateWithOverflow(this.getYear(r),this.getMonth(r),0)),r}addCalendarDays(e,i){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+i)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(tH.test(e)){let i=new Date(e);if(this.isValid(i))return i}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,i,r,o){let a=this.clone(e);return a.setHours(i,r,o,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,i){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let r=e.trim();if(r.length===0)return null;let o=this._parseTimeString(r);if(o===null){let a=r.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(o=this._parseTimeString(a))}return o||this.invalid()}addSeconds(e,i){return new Date(e.getTime()+i*1e3)}_createDateWithOverflow(e,i,r){let o=new Date;return o.setFullYear(e,i,r),o.setHours(0,0,0,0),o}_2digit(e){return("00"+e).slice(-2)}_format(e,i){let r=new Date;return r.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate()),r.setUTCHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),e.format(r)}_parseTimeString(e){let i=e.toUpperCase().match(nH);if(i){let r=parseInt(i[1]),o=parseInt(i[2]),a=i[3]==null?void 0:parseInt(i[3]),s=i[4];if(r===12?r=s==="AM"?0:r:s==="PM"&&(r+=12),ey(r,0,23)&&ey(o,0,59)&&(a==null||ey(a,0,59)))return this.setTime(this.today(),r,o,a||0)}return null}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function ey(t,n,e){return!isNaN(t)&&t>=n&&t<=e}var iH={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function TM(t=iH){return[{provide:_t,useClass:ty},{provide:Nr,useValue:t}]}var oH=["tooltip"],ny=20;var iy=new D("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Zt(t,{scrollThrottle:ny})}});function kM(t){let n=d(U);return()=>Zt(n,{scrollThrottle:ny})}var ry={provide:iy,deps:[],useFactory:kM};function AM(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var RM=new D("mat-tooltip-default-options",{providedIn:"root",factory:AM});var SM="tooltip-panel",MM=mo({passive:!0}),aH=8,sH=8,lH=24,cH=200,Gc=(()=>{class t{_elementRef=d(N);_ngZone=d(F);_platform=d(Ee);_ariaDescriber=d(yS);_focusMonitor=d(Jn);_dir=d(et);_injector=d(U);_viewContainerRef=d(ht);_animationsDisabled=$e();_defaultOptions=d(RM,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=OM;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Nt(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let i=Nt(e);this._disabled!==i&&(this._disabled=i,i?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Vn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Vn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let i=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(i)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new S;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=aH}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Se(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([i,r])=>{e.removeEventListener(i,r,MM)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,i){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let r=this._createOverlay(i);this._detach(),this._portal=this._portal||new ir(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=r.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(Se(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(e)}hide(e=this.hideDelay){let i=this._tooltipInstance;i&&(i.isVisible()?i.hide(e):(i._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof N)return this._overlayRef;this._detach()}let i=this._injector.get(xa).getAncestorScrollContainers(this._elementRef),r=`${this._cssClassPrefix}-${SM}`,o=Do(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(i);return o.positionChanges.pipe(Se(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=ar(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,r]:r,scrollStrategy:this._injector.get(iy)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Se(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(Se(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(Se(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Je(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(Se(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let i=e.getConfig().positionStrategy,r=this._getOrigin(),o=this._getOverlayPosition();i.withPositions([this._addOffset(V(V({},r.main),o.main)),this._addOffset(V(V({},r.fallback),o.fallback))])}_addOffset(e){let i=sH,r=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-i:e.originY==="bottom"?e.offsetY=i:e.originX==="start"?e.offsetX=r?-i:i:e.originX==="end"&&(e.offsetX=r?i:-i),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"||i=="below"?r={originX:"center",originY:i=="above"?"top":"bottom"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={originX:"start",originY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={originX:"end",originY:"center"});let{x:o,y:a}=this._invertPosition(r.originX,r.originY);return{main:r,fallback:{originX:o,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",i=this.position,r;i=="above"?r={overlayX:"center",overlayY:"bottom"}:i=="below"?r={overlayX:"center",overlayY:"top"}:i=="before"||i=="left"&&e||i=="right"&&!e?r={overlayX:"end",overlayY:"center"}:(i=="after"||i=="right"&&e||i=="left"&&!e)&&(r={overlayX:"start",overlayY:"center"});let{x:o,y:a}=this._invertPosition(r.overlayX,r.overlayY);return{main:r,fallback:{overlayX:o,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Dt(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,i){return this.position==="above"||this.position==="below"?i==="top"?i="bottom":i==="bottom"&&(i="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:i}}_updateCurrentPositionClass(e){let{overlayY:i,originX:r,originY:o}=e,a;if(i==="center"?this._dir&&this._dir.value==="rtl"?a=r==="end"?"left":"right":a=r==="start"?"left":"right":a=i==="bottom"&&o==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let l=`${this._cssClassPrefix}-${SM}-`;s.removePanelClass(l+this._currentPosition),s.addPanelClass(l+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let i;e.x!==void 0&&e.y!==void 0&&(i=e),this.show(void 0,i)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let i=e.targetTouches?.[0],r=i?{x:i.clientX,y:i.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,r)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",i=>{let r=i.relatedTarget;(!r||!this._overlayRef?.overlayElement.contains(r))&&this.hide()}],["wheel",i=>this._wheelListener(i)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let i=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",i],["touchcancel",i])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([i,r])=>{this._elementRef.nativeElement.addEventListener(i,r,MM)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let i=this._injector.get(me).elementFromPoint(e.clientX,e.clientY),r=this._elementRef.nativeElement;i!==r&&!r.contains(i)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let i=this._elementRef.nativeElement,r=i.style;(e==="on"||i.nodeName!=="INPUT"&&i.nodeName!=="TEXTAREA")&&(r.userSelect=r.msUserSelect=r.webkitUserSelect=r.MozUserSelect="none"),(e==="on"||!i.draggable)&&(r.webkitUserDrag="none"),r.touchAction="none",r.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Dt({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(i,r){i&2&&K("mat-mdc-tooltip-disabled",r.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),OM=(()=>{class t{_changeDetectorRef=d(Ae);_elementRef=d(N);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=$e();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new S;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>lH&&e.width>=cH}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let i=this._tooltip.nativeElement,r=this._showAnimation,o=this._hideAnimation;if(i.classList.remove(e?o:r),i.classList.add(e?r:o),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(i);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(i.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(i,r){if(i&1&&ee(oH,7),i&2){let o;j(o=H())&&(r._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(i,r){i&1&&I("mouseleave",function(a){return r._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(i,r){if(i&1){let o=ve();_(0,"div",1,0),I("animationend",function(s){return M(o),k(r._handleAnimationEnd(s))}),_(2,"div",2),L(3),b()()}i&2&&(K("mdc-tooltip--multiline",r._isMultiline),C("ngClass",r.tooltipClass),p(3),ie(r.message))},dependencies:[wi],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} `],encapsulation:2,changeDetection:0})}return t})();var dH=["mat-calendar-body",""];function uH(t,n){return this._trackRow(n)}var BM=(t,n)=>n.id;function mH(t,n){if(t&1&&(_(0,"tr",0)(1,"td",3),L(2),b()()),t&2){let e=y();p(),no("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),W("colspan",e.numCols),p(),qe(" ",e.label," ")}}function fH(t,n){if(t&1&&(_(0,"td",3),L(1),b()),t&2){let e=y(2);no("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),W("colspan",e._firstRowOffset),p(),qe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function hH(t,n){if(t&1){let e=ve();_(0,"td",6)(1,"button",7),I("click",function(r){let o=M(e).$implicit,a=y(2);return k(a._cellClicked(o,r))})("focus",function(r){let o=M(e).$implicit,a=y(2);return k(a._emitActiveDateChange(o,r))}),_(2,"span",8),L(3),b(),O(4,"span",9),b()()}if(t&2){let e=n.$implicit,i=n.$index,r=y().$index,o=y();no("width",o._cellWidth)("padding-top",o._cellPadding)("padding-bottom",o._cellPadding),W("data-mat-row",r)("data-mat-col",i),p(),K("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",o._isActiveCell(r,i))("mat-calendar-body-range-start",o._isRangeStart(e.compareValue))("mat-calendar-body-range-end",o._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",o._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",o._isComparisonBridgeStart(e.compareValue,r,i))("mat-calendar-body-comparison-bridge-end",o._isComparisonBridgeEnd(e.compareValue,r,i))("mat-calendar-body-comparison-start",o._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",o._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",o._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",o._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",o._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",o._isInPreview(e.compareValue)),C("ngClass",e.cssClasses)("tabindex",o._isActiveCell(r,i)?0:-1),W("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",o._isSelected(e.compareValue))("aria-current",o.todayValue===e.compareValue?"date":null)("aria-describedby",o._getDescribedby(e.compareValue)),p(),K("mat-calendar-body-selected",o._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",o._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",o.todayValue===e.compareValue),p(),qe(" ",e.displayValue," ")}}function pH(t,n){if(t&1&&(_(0,"tr",1),q(1,fH,2,6,"td",4),on(2,hH,5,48,"td",5,BM),b()),t&2){let e=n.$implicit,i=n.$index,r=y();p(),Y(i===0&&r._firstRowOffset?1:-1),p(),an(e)}}function gH(t,n){if(t&1&&(_(0,"th",2)(1,"span",6),L(2),b(),_(3,"span",3),L(4),b()()),t&2){let e=n.$implicit;p(2),ie(e.long),p(2),ie(e.narrow)}}var _H=["*"];function bH(t,n){}function vH(t,n){if(t&1){let e=ve();_(0,"mat-month-view",4),Kt("activeDateChange",function(r){M(e);let o=y();return Lt(o.activeDate,r)||(o.activeDate=r),k(r)}),I("_userSelection",function(r){M(e);let o=y();return k(o._dateSelected(r))})("dragStarted",function(r){M(e);let o=y();return k(o._dragStarted(r))})("dragEnded",function(r){M(e);let o=y();return k(o._dragEnded(r))}),b()}if(t&2){let e=y();Yt("activeDate",e.activeDate),C("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function yH(t,n){if(t&1){let e=ve();_(0,"mat-year-view",5),Kt("activeDateChange",function(r){M(e);let o=y();return Lt(o.activeDate,r)||(o.activeDate=r),k(r)}),I("monthSelected",function(r){M(e);let o=y();return k(o._monthSelectedInYearView(r))})("selectedChange",function(r){M(e);let o=y();return k(o._goToDateInView(r,"month"))}),b()}if(t&2){let e=y();Yt("activeDate",e.activeDate),C("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function DH(t,n){if(t&1){let e=ve();_(0,"mat-multi-year-view",6),Kt("activeDateChange",function(r){M(e);let o=y();return Lt(o.activeDate,r)||(o.activeDate=r),k(r)}),I("yearSelected",function(r){M(e);let o=y();return k(o._yearSelectedInMultiYearView(r))})("selectedChange",function(r){M(e);let o=y();return k(o._goToDateInView(r,"year"))}),b()}if(t&2){let e=y();Yt("activeDate",e.activeDate),C("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function CH(t,n){}var wH=["button"],EH=[[["","matDatepickerToggleIcon",""]]],xH=["[matDatepickerToggleIcon]"];function IH(t,n){t&1&&(Rn(),_(0,"svg",2),O(1,"path",3),b())}var al=(()=>{class t{changes=new S;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,i){return`${e} \u2013 ${i}`}formatYearRangeLabel(e,i){return`${e} to ${i}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),TH=0,qc=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=TH++;constructor(n,e,i,r,o={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=s}},SH={passive:!1,capture:!0},$f={passive:!0,capture:!0},NM={passive:!0},ol=(()=>{class t{_elementRef=d(N);_ngZone=d(F);_platform=d(Ee);_intl=d(al);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new R;previewChange=new R;activeDateChange=new R;dragStarted=new R;dragEnded=new R;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=d(U);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(Pe),i=d(Qe);this._startDateLabelId=i.getId("mat-calendar-body-start-"),this._endDateLabelId=i.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=i.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=i.getId("mat-calendar-body-comparison-end-"),d(Ke).load(ni),this._ngZone.runOutsideAngular(()=>{let r=this._elementRef.nativeElement,o=[e.listen(r,"touchmove",this._touchmoveHandler,SH),e.listen(r,"mouseenter",this._enterHandler,$f),e.listen(r,"focus",this._enterHandler,$f),e.listen(r,"mouseleave",this._leaveHandler,$f),e.listen(r,"blur",this._leaveHandler,$f),e.listen(r,"mousedown",this._mousedownHandler,NM),e.listen(r,"touchstart",this._mousedownHandler,NM)];this._platform.isBrowser&&o.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=o})}_cellClicked(e,i){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:i})}_emitActiveDateChange(e,i){e.enabled&&this.activeDateChange.emit({value:e.value,event:i})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let i=e.numCols,{rows:r,numCols:o}=this;(e.rows||i)&&(this._firstRowOffset=r&&r.length&&r[0].length?o-r[0].length:0),(e.cellAspectRatio||i||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/o}%`),(i||!this._cellWidth)&&(this._cellWidth=`${100/o}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,i){let r=e*this.numCols+i;return e&&(r-=this._firstRowOffset),r==this.activeCell}_focusActiveCell(e=!0){Dt(()=>{setTimeout(()=>{let i=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");i&&(e||(this._skipNextFocus=!0),i.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return sy(e,this.startValue,this.endValue)}_isRangeEnd(e){return ly(e,this.startValue,this.endValue)}_isInRange(e){return cy(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return sy(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,i,r){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let o=this.rows[i][r-1];if(!o){let a=this.rows[i-1];o=a&&a[a.length-1]}return o&&!this._isRangeEnd(o.compareValue)}_isComparisonBridgeEnd(e,i,r){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let o=this.rows[i][r+1];if(!o){let a=this.rows[i+1];o=a&&a[0]}return o&&!this._isRangeStart(o.compareValue)}_isComparisonEnd(e){return ly(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return cy(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return sy(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ly(e,this.previewStart,this.previewEnd)}_isInPreview(e){return cy(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let i=this._getCellFromElement(e.target);i&&this._ngZone.run(()=>this.previewChange.emit({value:i.enabled?i:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let i=FM(e),r=i?this._getCellFromElement(i):null;i!==e.target&&(this._didDragSinceMouseDown=!0),ay(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:r?.enabled?r:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let i=e.target&&this._getCellFromElement(e.target);!i||!this._isInRange(i.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:i.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let i=ay(e.target);if(!i){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}i.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let r=this._getCellFromElement(i);this.dragEnded.emit({value:r?.rawValue??null,event:e})})};_touchendHandler=e=>{let i=FM(e);i&&this._mouseupHandler({target:i})};_getCellFromElement(e){let i=ay(e);if(i){let r=i.getAttribute("data-mat-row"),o=i.getAttribute("data-mat-col");if(r&&o)return this.rows[parseInt(r)][parseInt(o)]}return null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Be],attrs:dH,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(i,r){i&1&&(q(0,mH,3,6,"tr",0),on(1,pH,4,1,"tr",1,uH,!0),_(3,"span",2),L(4),b(),_(5,"span",2),L(6),b(),_(7,"span",2),L(8),b(),_(9,"span",2),L(10),b()),i&2&&(Y(r._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} `],encapsulation:2,changeDetection:0})}return t})();function oy(t){return t?.nodeName==="TD"}function ay(t){let n;return oy(t)?n=t:oy(t.parentNode)?n=t.parentNode:oy(t.parentNode?.parentNode)&&(n=t.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function sy(t,n,e){return e!==null&&n!==e&&t=n&&t===e}function cy(t,n,e,i){return i&&n!==null&&e!==null&&n!==e&&t>=n&&t<=e}function FM(t){let n=t.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var dt=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},Gf=(()=>{class t{selection;_adapter;_selectionChanged=new S;selectionChanged=this._selectionChanged;constructor(e,i){this.selection=e,this._adapter=i,this.selection=e}updateSelection(e,i){let r=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:i,oldValue:r})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(i){L_()};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),MH=(()=>{class t extends Gf{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(i){return new(i||t)(X(_t))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function kH(t,n){return t||new MH(n)}var AH={provide:Gf,deps:[[new ql,new Qg,Gf],_t],useFactory:kH};var Wf=new D("MAT_DATE_RANGE_SELECTION_STRATEGY"),jM=(()=>{class t{_dateAdapter;constructor(e){this._dateAdapter=e}selectionFinished(e,i){let{start:r,end:o}=i;return r==null?r=e:o==null&&e&&this._dateAdapter.compareDate(e,r)>=0?o=e:(r=e,o=null),new dt(r,o)}createPreview(e,i){let r=null,o=null;return i.start&&!i.end&&e&&(r=i.start,o=e),new dt(r,o)}createDrag(e,i,r){let o=i.start,a=i.end;if(!o||!a)return null;let s=this._dateAdapter,l=s.compareDate(o,a)!==0,c=s.getYear(r)-s.getYear(e),u=s.getMonth(r)-s.getMonth(e),m=s.getDate(r)-s.getDate(e);return l&&s.sameDate(e,i.start)?(o=r,s.compareDate(r,a)>0&&(a=s.addCalendarYears(a,c),a=s.addCalendarMonths(a,u),a=s.addCalendarDays(a,m))):l&&s.sameDate(e,i.end)?(a=r,s.compareDate(r,o)<0&&(o=s.addCalendarYears(o,c),o=s.addCalendarMonths(o,u),o=s.addCalendarDays(o,m))):(o=s.addCalendarYears(o,c),o=s.addCalendarMonths(o,u),o=s.addCalendarDays(o,m),a=s.addCalendarYears(a,c),a=s.addCalendarMonths(a,u),a=s.addCalendarDays(a,m)),new dt(o,a)}static \u0275fac=function(i){return new(i||t)(X(_t))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();var dy=7,RH=0,PM=(()=>{class t{_changeDetectorRef=d(Ae);_dateFormats=d(Nr,{optional:!0});_dateAdapter=d(_t,{optional:!0});_dir=d(et,{optional:!0});_rangeStrategy=d(Wf,{optional:!0});_rerenderSubscription=ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._hasSameMonthAndYear(i,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof dt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new R;_userSelection=new R;dragStarted=new R;dragEnded=new R;activeDateChange=new R;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){d(Ke).load(er),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(tt(null)).subscribe(()=>this._init())}ngOnChanges(e){let i=e.comparisonStart||e.comparisonEnd;i&&!i.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let i=e.value,r=this._getDateFromDayOfMonth(i),o,a;this._selected instanceof dt?(o=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):o=a=this._getDateInCurrentMonth(this._selected),(o!==i||a!==i)&&this.selectedChange.emit(r),this._userSelection.emit({value:r,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!Je(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(dy+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%dy,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:i}){if(this._rangeStrategy){let r=i?i.rawValue:null,o=this._rangeStrategy.createPreview(r,this.selected,e);if(this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this.activeDrag&&r){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,r,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let i=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:i??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:i[s],id:RH++}));this._weekdays=o.slice(e).concat(o.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),i=this._dateAdapter.getDateNames();this._weeks=[[]];for(let r=0,o=this._firstWeekOffset;r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,i){return!!(e&&i&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i))}_getCellCompareValue(e){if(e){let i=this._dateAdapter.getYear(e),r=this._dateAdapter.getMonth(e),o=this._dateAdapter.getDate(e);return new Date(i,r,o).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof dt?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-month-view"]],viewQuery:function(i,r){if(i&1&&ee(ol,5),i&2){let o;j(o=H())&&(r._matCalendarBody=o.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Be],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(i,r){i&1&&(_(0,"table",0)(1,"thead",1)(2,"tr"),on(3,gH,5,2,"th",2,BM),b(),_(5,"tr",3),O(6,"th",4),b()(),_(7,"tbody",5),I("selectedValueChange",function(a){return r._dateSelected(a)})("activeDateChange",function(a){return r._updateActiveDate(a)})("previewChange",function(a){return r._previewChanged(a)})("dragStarted",function(a){return r.dragStarted.emit(a)})("dragEnded",function(a){return r._dragEnded(a)})("keyup",function(a){return r._handleCalendarBodyKeyup(a)})("keydown",function(a){return r._handleCalendarBodyKeydown(a)}),b()()),i&2&&(p(3),an(r._weekdays),p(4),C("label",r._monthLabel)("rows",r._weeks)("todayValue",r._todayDate)("startValue",r._rangeStart)("endValue",r._rangeEnd)("comparisonStart",r._comparisonRangeStart)("comparisonEnd",r._comparisonRangeEnd)("previewStart",r._previewStart)("previewEnd",r._previewEnd)("isRange",r._isRange)("labelMinRequiredCells",3)("activeCell",r._dateAdapter.getDate(r.activeDate)-1)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName))},dependencies:[ol],encapsulation:2,changeDetection:0})}return t})(),Hn=24,uy=4,LM=(()=>{class t{_changeDetectorRef=d(Ae);_dateAdapter=d(_t,{optional:!0});_dir=d(et,{optional:!0});_rerenderSubscription=ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),HM(this._dateAdapter,i,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof dt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new R;yearSelected=new R;activeDateChange=new R;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(tt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let i=this._dateAdapter.getYear(this._activeDate)-Wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let r=0,o=[];rthis._createCellForYear(a))),o=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let i=e.value,r=this._dateAdapter.createDate(i,0,1),o=this._getDateFromYear(i);this.yearSelected.emit(r),this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromYear(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-uy);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,uy);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Hn-Wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Hn*10:-Hn);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Hn*10:Hn);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Wc(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let i=this._dateAdapter.getMonth(this.activeDate),r=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));return this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForYear(e){let i=this._dateAdapter.createDate(e,0,1),r=this._dateAdapter.getYearName(i),o=this.dateClass?this.dateClass(i,"multi-year"):void 0;return new qc(e,r,r,this._shouldEnableYear(e),o)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=d(Ae);_dateFormats=d(Nr,{optional:!0});_dateAdapter=d(_t,{optional:!0});_dir=d(et,{optional:!0});_rerenderSubscription=ge.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let i=this._activeDate,r=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(r,this.minDate,this.maxDate),this._dateAdapter.getYear(i)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof dt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new R;monthSelected=new R;activeDateChange=new R;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(tt(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let i=e.value,r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),i,1);this.monthSelected.emit(r);let o=this._getDateFromMonth(i);this.selectedChange.emit(o)}_updateActiveDate(e){let i=e.value,r=this._activeDate;this.activeDate=this._getDateFromMonth(i),this._dateAdapter.compareDate(r,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let i=this._activeDate,r=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,r?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(i,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(i=>i.map(r=>this._createCellForMonth(r,e[r]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.getNumDaysInMonth(i);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),r))}_createCellForMonth(e,i){let r=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.format(r,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(r,"year"):void 0;return new qc(e,i.toLocaleUpperCase(),o,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let i=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(i,e)||this._isYearAndMonthBeforeMinDate(i,e))return!1;if(!this.dateFilter)return!0;let r=this._dateAdapter.createDate(i,e,1);for(let o=r;this._dateAdapter.getMonth(o)==e;o=this._dateAdapter.addCalendarDays(o,1))if(this.dateFilter(o))return!0;return!1}_isYearAndMonthAfterMaxDate(e,i){if(this.maxDate){let r=this._dateAdapter.getYear(this.maxDate),o=this._dateAdapter.getMonth(this.maxDate);return e>r||e===r&&i>o}return!1}_isYearAndMonthBeforeMinDate(e,i){if(this.minDate){let r=this._dateAdapter.getYear(this.minDate),o=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=d(al);calendar=d(Aa);_dateAdapter=d(_t,{optional:!0});_dateFormats=d(Nr,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){d(Ke).load(er);let e=d(Ae);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Hn))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Hn))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,i=this._intl,r=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=r.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=i.switchToMultiYearViewLabel,this._prevButtonLabel=i.prevMonthLabel,this._nextButtonLabel=i.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=r.getYearName(e.activeDate),this._periodButtonDescription=r.getYearName(e.activeDate),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevYearLabel,this._nextButtonLabel=i.nextYearLabel):(this._periodButtonText=i.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=i.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=i.switchToMonthViewLabel,this._prevButtonLabel=i.prevMultiYearLabel,this._nextButtonLabel=i.nextMultiYearLabel)}_isSameView(e,i){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(i):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(i):HM(this._dateAdapter,e,i,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let i=this._dateAdapter.getYear(this.calendar.activeDate)-Wc(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),r=i+Hn-1,o=this._dateAdapter.getYearName(this._dateAdapter.createDate(i,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(r,0,1));return[o,a]}_periodButtonLabelId=d(Qe).getId("mat-calendar-period-label-");static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:_H,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(i,r){i&1&&(je(),_(0,"div",0)(1,"div",1)(2,"span",2),L(3),b(),_(4,"button",3),I("click",function(){return r.currentPeriodClicked()}),_(5,"span",4),L(6),b(),Rn(),_(7,"svg",5),O(8,"polygon",6),b()(),na(),O(9,"div",7),fe(10),_(11,"button",8),I("click",function(){return r.previousClicked()}),Rn(),_(12,"svg",9),O(13,"path",10),b()(),na(),_(14,"button",11),I("click",function(){return r.nextClicked()}),Rn(),_(15,"svg",9),O(16,"path",12),b()()()()),i&2&&(p(2),C("id",r._periodButtonLabelId),p(),ie(r.periodButtonDescription),p(),W("aria-label",r.periodButtonLabel)("aria-describedby",r._periodButtonLabelId),p(2),ie(r.periodButtonText),p(),K("mat-calendar-invert",r.calendar.currentView!=="month"),p(4),C("disabled",!r.previousEnabled())("matTooltip",r.prevButtonLabel),W("aria-label",r.prevButtonLabel),p(3),C("disabled",!r.nextEnabled())("matTooltip",r.nextButtonLabel),W("aria-label",r.nextButtonLabel))},dependencies:[Bn,_o,Gc],encapsulation:2,changeDetection:0})}return t})(),Aa=(()=>{class t{_dateAdapter=d(_t,{optional:!0});_dateFormats=d(Nr,{optional:!0});_changeDetectorRef=d(Ae);_elementRef=d(N);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof dt?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new R;yearSelected=new R;monthSelected=new R;viewChanged=new R(!0);_userSelection=new R;_userDragDrop=new R;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let i=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),i&&(this.stateChanges.next(),this.viewChanged.emit(i))}_currentView;_activeDrag=null;stateChanges=new S;constructor(){this._intlChanges=d(al).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new ir(this.headerComponent||UM),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let i=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,r=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,o=i||r||e.dateFilter;if(o&&!o.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(Ln())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let i=e.value;(this.selected instanceof dt||i&&!this._dateAdapter.sameDate(i,this.selected))&&this.selectedChange.emit(i),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,i){this.activeDate=e,this.currentView=i}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-calendar"]],viewQuery:function(i,r){if(i&1&&(ee(PM,5),ee(VM,5),ee(LM,5)),i&2){let o;j(o=H())&&(r.monthView=o.first),j(o=H())&&(r.yearView=o.first),j(o=H())&&(r.multiYearView=o.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[pe([AH]),Be],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(i,r){if(i&1&&(Fe(0,bH,0,0,"ng-template",0),_(1,"div",1),q(2,vH,1,11,"mat-month-view",2)(3,yH,1,6,"mat-year-view",3)(4,DH,1,6,"mat-multi-year-view",3),b()),i&2){let o;C("cdkPortalOutlet",r._calendarHeaderPortal),p(2),Y((o=r.currentView)==="month"?2:o==="year"?3:o==="multi-year"?4:-1)}},dependencies:[vo,Ev,PM,VM,LM],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} `],encapsulation:2,changeDetection:0})}return t})(),NH=new D("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Zt(t)}});function FH(t){let n=d(U);return()=>Zt(n)}var PH={provide:NH,deps:[],useFactory:FH},LH=(()=>{class t{_elementRef=d(N);_animationsDisabled=$e();_changeDetectorRef=d(Ae);_globalModel=d(Gf);_dateAdapter=d(_t);_ngZone=d(F);_rangeSelectionStrategy=d(Wf,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new S;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(d(Ke).load(er),this._closeButtonText=d(al).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,i=d(Pe);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"animationstart",this._handleAnimationEvent),i.listen(e,"animationend",this._handleAnimationEvent),i.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let i=this._model.selection,r=e.value,o=i instanceof dt;if(o&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(r,i,e.event);this._model.updateSelection(a,this)}else r&&(o||!this._dateAdapter.sameDate(r,i))&&this._model.add(r);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let i=this._elementRef.nativeElement;e.target!==i||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",i.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,i){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,i&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(i,r){if(i&1&&ee(Aa,5),i&2){let o;j(o=H())&&(r._calendar=o.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(i,r){i&2&&(yi(r.color?"mat-"+r.color:""),K("mat-datepicker-content-touch",r.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!r._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(i,r){i&1&&(_(0,"div",0)(1,"mat-calendar",1),I("yearSelected",function(a){return r.datepicker._selectYear(a)})("monthSelected",function(a){return r.datepicker._selectMonth(a)})("viewChanged",function(a){return r.datepicker._viewChanged(a)})("_userSelection",function(a){return r._handleUserSelection(a)})("_userDragDrop",function(a){return r._handleUserDragDrop(a)}),b(),Fe(2,CH,0,0,"ng-template",2),_(3,"button",3),I("focus",function(){return r._closeButtonFocused=!0})("blur",function(){return r._closeButtonFocused=!1})("click",function(){return r.datepicker.close()}),L(4),b()()),i&2&&(K("mat-datepicker-content-container-with-custom-header",r.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",r._actionsPortal),W("aria-modal",!0)("aria-labelledby",r._dialogLabelId??void 0),p(),yi(r.datepicker.panelClass),C("id",r.datepicker.id)("startAt",r.datepicker.startAt)("startView",r.datepicker.startView)("minDate",r.datepicker._getMinDate())("maxDate",r.datepicker._getMaxDate())("dateFilter",r.datepicker._getDateFilter())("headerComponent",r.datepicker.calendarHeaderComponent)("selected",r._getSelected())("dateClass",r.datepicker.dateClass)("comparisonStart",r.comparisonStart)("comparisonEnd",r.comparisonEnd)("startDateAccessibleName",r.startDateAccessibleName)("endDateAccessibleName",r.endDateAccessibleName),p(),C("cdkPortalOutlet",r._actionsPortal),p(),K("cdk-visually-hidden",!r._closeButtonFocused),C("color",r.color||"primary"),p(),ie(r._closeButtonText))},dependencies:[Ar,Aa,vo,Bn],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} `],encapsulation:2,changeDetection:0})}return t})();var VH=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),BH=(()=>{class t{_intl=d(al);_changeDetectorRef=d(Ae);_stateChanges=ge.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=d(new Kn("tabindex"),{optional:!0}),i=Number(e);this.tabIndex=i||i===0?i:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Te(),i=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Te(),r=this.datepicker?at(this.datepicker.openedStream,this.datepicker.closedStream):Te();this._stateChanges.unsubscribe(),this._stateChanges=at(this._intl.changes,e,i,r).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(i,r,o){if(i&1&&We(o,VH,5),i&2){let a;j(a=H())&&(r._customIcon=a.first)}},viewQuery:function(i,r){if(i&1&&ee(wH,5),i&2){let o;j(o=H())&&(r._button=o.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(i,r){i&1&&I("click",function(a){return r._open(a)}),i&2&&(W("tabindex",null)("data-mat-calendar",r.datepicker?r.datepicker.id:null),K("mat-datepicker-toggle-active",r.datepicker&&r.datepicker.opened)("mat-accent",r.datepicker&&r.datepicker.color==="accent")("mat-warn",r.datepicker&&r.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Q],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Be],ngContentSelectors:xH,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(i,r){i&1&&(je(EH),_(0,"button",1,0),q(2,IH,2,0,":svg:svg",2),fe(3),b()),i&2&&(C("tabIndex",r.disabled?-1:r.tabIndex)("disabled",r.disabled)("disableRipple",r.disableRipple),W("aria-haspopup",r.datepicker?"dialog":null)("aria-label",r.ariaLabel||r._intl.openCalendarLabel)("aria-expanded",r.datepicker?r.datepicker.opened:null),p(2),Y(r._customIcon?-1:2))},dependencies:[_o],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} `],encapsulation:2,changeDetection:0})}return t})();var qf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[al,PH],imports:[vn,un,bn,Xs,he,LH,BH,UM,Si]})}return t})();var Xt=class{BookingTypePlaceholderOption="Select Type";BookingResortPlaceholderOption="Select Destination";BookingDestinationAriaText="Select Destination";BookingDestinationError="Please select a destination";BookingPromoCodeError="Please check promo code";BookingTypeAriaText="Select Booking Type";DatepickerPlaceholder="Check In - Check Out";BookingButtonText="Book Now";MobileCloseButtonAriaText="Close Book Your Getaway dialog";RoomOnlyTabText="Room Only";PackageTabText="Room + Airfare";CompactBookingHeadline="Book Your Getaway";AdultText="Adult";ChildText="Child";SingleRoomText="Room";BookingTypDropdownText="Type";DestDropdownText="Destination";DestPlaceholder="Where?";DestDropdownLeftColHeadline="Destination";DestDropdownRightColHeadline="Resorts";DestDropdownSearch="Search All of";ResortDropdownText="Resort";NoResortColumnText="Not Available";BrandDropdownText="Resort";RequiredIndicator="*";BookingLoadingText="Loading content";RoomsText="Rooms";GuestsText="Guests";PromoCodeText="Promo Code";AddRoomButton="Add Room";RemoveRoomButton="Remove Room";ChildAgesText="Ages";RoomGuestsDoneButton="Done";TravelDatesDivider="➔";TravelDatesText="Travel Dates";PackageButtonText="Room + Airfare";LandOnlyButtonText="Room Only";BookWithPointsLabel="Points";BookWithPointsAriaLabel="Book using points";LoaderAriaText="Loading Please Wait...";Search="Search";SearchPlaceholder="Start Typing...";SearchIconAriaText="Search Icon";NoResultsfound="No Results Found";AdditionalTabText="Already Booked?";AddExtrasTripButton="Add Extras to Your Trip";AriaLabelModalPopupCloseButton="Close";ClearButtonText="Clear";DoneButtonText="Done";TypeAheadNotificationMessage="Enter at least 3 characters to see matching results.";BookingOriginError="Please select a Origin";OriginPlaceholder="Enter City or Airport";OriginDropdownText="Leaving From";OriginNoResultsfound="No Results Found";TravelDatesError="Please select Travel Dates";ChildToolTipDescription="For ages 0-12, add child and select age. Guests 13+ must be entered as adults";RatesDisplayedMessage="Prices are shown in USD, per person, per night. Additional fees may apply.";DestinationWelcomeMessage="";DateFormat="MM/dd/yyyy";AriaLabelNextMonthButton="";AriaLabelPrevMonthButton=""};var Et=class{loc="00000000-0000-0000-0000-000000000000";b=[];lang="en";bs=[];os=[];ds=[];fc=null;is=!1;pc=!1;tt=!0;ac=!1;arg=!1;mr=4;mgpr=4;ma=4;mc=2;mca=12;mtpf=6;so=!0;sr=!1;ss=!0;rd=30;dowf="short";mf="long";svgUrl="/img/alg-icon-library-sprite.svg";apiBaseUrl="/configuration.json?";ratesUrl="/rates.json";bd=!1;bo=!1;ap=!0;xst="";liu=""};var ut=class t{initialized=!1;configuration=this.defaultConfiguration();initialize(n){this.initialized||(this.configuration=Object.assign(this.configuration,n)),this.initialized=!0}getIconUrl(n){return this.configuration?.svgUrl+"#"+n}defaultConfiguration(){return new Et}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var Jt=class t{constructor(n){this.configuration=n}icon=Vt.required();iconUrl=ke(()=>this.configuration.getIconUrl(this.icon()));static \u0275fac=function(e){return new(e||t)(P(ut))};static \u0275cmp=B({type:t,selectors:[["deal-icon"]],inputs:{icon:[1,"icon"]},decls:2,vars:1,consts:[["xmlns","http://www.w3.org/2000/svg"]],template:function(e,i){e&1&&(Rn(),Gt(0,"svg",0),qt(1,"use"),Wt()),e&2&&(p(),W("href",i.iconUrl(),null,"xlink"))},encapsulation:2})};var HH=["trigger"],zH=["panel"],UH=[[["mat-select-trigger"]],"*"],$H=["mat-select-trigger","*"];function GH(t,n){if(t&1&&(_(0,"span",4),L(1),b()),t&2){let e=y();p(),ie(e.placeholder)}}function WH(t,n){t&1&&fe(0)}function qH(t,n){if(t&1&&(_(0,"span",11),L(1),b()),t&2){let e=y(2);p(),ie(e.triggerValue)}}function YH(t,n){if(t&1&&(_(0,"span",5),q(1,WH,1,0)(2,qH,2,1,"span",11),b()),t&2){let e=y();p(),Y(e.customTrigger?1:2)}}function KH(t,n){if(t&1){let e=ve();_(0,"div",12,1),I("keydown",function(r){M(e);let o=y();return k(o._handleKeydown(r))}),fe(2,1),b()}if(t&2){let e=y();yi(lb("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),K("mat-select-panel-animations-enabled",!e._animationsDisabled),C("ngClass",e.panelClass),W("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var my=new D("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Zt(t)}});function $M(t){let n=d(U);return()=>Zt(n)}var GM=new D("MAT_SELECT_CONFIG"),WM={provide:my,deps:[],useFactory:$M},qM=new D("MatSelectTrigger"),Yf=class{source;value;constructor(n,e){this.source=n,this.value=e}},fy=(()=>{class t{_viewportRuler=d(nr);_changeDetectorRef=d(Ae);_elementRef=d(N);_dir=d(et,{optional:!0});_idGenerator=d(Qe);_renderer=d(Pe);_parentFormField=d(wo,{optional:!0});ngControl=d(xi,{self:!0,optional:!0});_liveAnnouncer=d(Sv);_defaultOptions=d(GM,{optional:!0});_animationsDisabled=$e();_initialized=new S;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let i=this.options.toArray()[e];if(i){let r=this.panel.nativeElement,o=Sf(e,this.options,this.optionGroups),a=i._getHostElement();e===0&&o===1?r.scrollTop=0:r.scrollTop=Mf(a.offsetTop,a.offsetHeight,r.scrollTop,r.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Yf(this,e)}_scrollStrategyFactory=d(my);_panelOpen=!1;_compareWith=(e,i)=>e===i;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new S;_errorStateTracker;stateChanges=new S;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Me(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Xn.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=dr(()=>{let e=this.options;return e?e.changes.pipe(tt(e),At(()=>at(...e.map(i=>i.onSelectionChange)))):this._initialized.pipe(At(()=>this.optionSelectionChanges))});openedChange=new R;_openedStream=this.openedChange.pipe(ze(e=>e),_e(()=>{}));_closedStream=this.openedChange.pipe(ze(e=>!e),_e(()=>{}));selectionChange=new R;valueChange=new R;constructor(){let e=d(jf),i=d(ba,{optional:!0}),r=d(kc,{optional:!0}),o=d(new Kn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new nl(e,this.ngControl,r,i,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=o==null?0:parseInt(o)||0,this.id=this.id}ngOnInit(){this._selectionModel=new oi(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(Se(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(Se(this._destroy)).subscribe(e=>{e.added.forEach(i=>i.select()),e.removed.forEach(i=>i.deselect())}),this.options.changes.pipe(tt(null),Se(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),i=this.ngControl;if(e!==this._triggerAriaLabelledBy){let r=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?r.setAttribute("aria-labelledby",e):r.removeAttribute("aria-labelledby")}i&&(this._previousControl!==i.control&&(this._previousControl!==void 0&&i.disabled!==null&&i.disabled!==this.disabled&&(this.disabled=i.disabled),this._previousControl=i.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Ze(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let i=`${this.id}-panel`;this._trackedModal&&go(this._trackedModal,"aria-owns",i),Ws(e,"aria-owns",i),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;go(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{i(),clearTimeout(r),this._cleanupDetach=void 0};let e=this.panel.nativeElement,i=this._renderer.listen(e,"animationend",o=>{o.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),r=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(i=>i.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let i=e.keyCode,r=i===40||i===38||i===37||i===39,o=i===13||i===32,a=this._keyManager;if(!a.isTyping()&&o&&!Je(e)||(this.multiple||e.altKey)&&r)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let l=this.selected;l&&s!==l&&this._liveAnnouncer.announce(l.viewValue,1e4)}}_handleOpenKeydown(e){let i=this._keyManager,r=e.keyCode,o=r===40||r===38,a=i.isTyping();if(o&&e.altKey)e.preventDefault(),this.close();else if(!a&&(r===13||r===32)&&i.activeItem&&!Je(e))e.preventDefault(),i.activeItem._selectViaInteraction();else if(!a&&this._multiple&&r===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(l=>!l.disabled&&!l.selected);this.options.forEach(l=>{l.disabled||(s?l.select():l.deselect())})}else{let s=i.activeItemIndex;i.onKeydown(e),this._multiple&&o&&e.shiftKey&&i.activeItem&&i.activeItemIndex!==s&&i.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Je(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(i=>i.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(i=>this._selectOptionByValue(i)),this._sortValues();else{let i=this._selectOptionByValue(e);i?this._keyManager.updateActiveItem(i):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let i=this.options.find(r=>{if(this._selectionModel.isSelected(r))return!1;try{return(r.value!=null||this.canSelectNullableOptions)&&this._compareWith(r.value,e)}catch{return!1}});return i&&this._selectionModel.select(i),i}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof yo?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Da(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=at(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Se(e)).subscribe(i=>{this._onSelect(i.source,i.isUserInput),i.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),at(...this.options.map(i=>i._stateChanges)).pipe(Se(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,i){let r=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(r!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),i&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),i&&this.focus())),r!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((i,r)=>this.sortComparator?this.sortComparator(i,r,e):e.indexOf(i)-e.indexOf(r)),this.stateChanges.next()}}_propagateChanges(e){let i;this.multiple?i=this.selected.map(r=>r.value):i=this.selected?this.selected.value:e,this._value=i,this.valueChange.emit(i),this._onChange(i),this.selectionChange.emit(this._getChangeEvent(i)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let i=0;i0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,i=e?e+" ":"";return this.ariaLabelledby?i+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-select"]],contentQueries:function(i,r,o){if(i&1&&(We(o,qM,5),We(o,jn,5),We(o,Hc,5)),i&2){let a;j(a=H())&&(r.customTrigger=a.first),j(a=H())&&(r.options=a),j(a=H())&&(r.optionGroups=a)}},viewQuery:function(i,r){if(i&1&&(ee(HH,5),ee(zH,5),ee(Co,5)),i&2){let o;j(o=H())&&(r.trigger=o.first),j(o=H())&&(r.panel=o.first),j(o=H())&&(r._overlayDir=o.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(i,r){i&1&&I("keydown",function(a){return r._handleKeydown(a)})("focus",function(){return r._onFocus()})("blur",function(){return r._onBlur()}),i&2&&(W("id",r.id)("tabindex",r.disabled?-1:r.tabIndex)("aria-controls",r.panelOpen?r.id+"-panel":null)("aria-expanded",r.panelOpen)("aria-label",r.ariaLabel||null)("aria-required",r.required.toString())("aria-disabled",r.disabled.toString())("aria-invalid",r.errorState)("aria-activedescendant",r._getAriaActiveDescendant()),K("mat-mdc-select-disabled",r.disabled)("mat-mdc-select-invalid",r.errorState)("mat-mdc-select-required",r.required)("mat-mdc-select-empty",r.empty)("mat-mdc-select-multiple",r.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",Q],disableRipple:[2,"disableRipple","disableRipple",Q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:sn(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",Q],placeholder:"placeholder",required:[2,"required","required",Q],multiple:[2,"multiple","multiple",Q],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",Q],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",sn],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",Q]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pe([{provide:el,useExisting:t},{provide:jc,useExisting:t}]),Be],ngContentSelectors:$H,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(i,r){if(i&1){let o=ve();je(UH),_(0,"div",2,0),I("click",function(){return M(o),k(r.open())}),_(3,"div",3),q(4,GH,2,1,"span",4)(5,YH,3,1,"span",5),b(),_(6,"div",6)(7,"div",7),Rn(),_(8,"svg",8),O(9,"path",9),b()()()(),Fe(10,KH,3,10,"ng-template",10),I("detach",function(){return M(o),k(r.close())})("backdropClick",function(){return M(o),k(r.close())})("overlayKeydown",function(s){return M(o),k(r._handleOverlayKeydown(s))})}if(i&2){let o=He(1);p(3),W("id",r._valueId),p(),Y(r.empty?4:5),p(6),C("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",r._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",r._scrollStrategy)("cdkConnectedOverlayOrigin",r._preferredOverlayOrigin||o)("cdkConnectedOverlayPositions",r._positions)("cdkConnectedOverlayWidth",r._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[yo,Co,wi],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} `],encapsulation:2,changeDetection:0})}return t})();var hy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[WM],imports:[un,tl,he,Si,ri,tl,he]})}return t})();var gy=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({providers:[ry],imports:[bn,un,he,he,Si]})}return t})();var Ra=class{adults=1;children=0;ages=[]},Io=class{value=0};var Ft=class t{initialized=!1;labels=new Xt;initialize(n,e){this.initialized||(this.labels=Object.assign(this.labels,n),this.labels.DestinationWelcomeMessage=e??this.labels.DestinationWelcomeMessage),this.initialized=!0}getLabels(){return this.labels}static \u0275fac=function(e){return new(e||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};function ZH(t,n){if(t&1){let e=ve();_(0,"div",20)(1,"div",22)(2,"span",6),L(3),b(),_(4,"span",23,0),I("click",function(){M(e);let r=He(5);return k(r.show())}),O(6,"deal-icon",24),b()(),_(7,"div",12)(8,"button",25),I("click",function(){M(e);let r=y().$index,o=y(2);return k(o.decrementChildren(r))}),O(9,"deal-icon",16),b(),_(10,"span",17),L(11),b(),_(12,"button",26),I("click",function(){M(e);let r=y().$index,o=y(2);return k(o.incrementChildren(r))}),O(13,"deal-icon",19),b()()()}if(t&2){let e,i=y().$implicit,r=y(2);p(3),ie(r.resourceLabels().ChildText),p(),C("matTooltip",pn(r.resourceLabels().ChildToolTipDescription)),p(4),C("disabled",i.children<=0),p(3),ie(i.children),p(),C("disabled",r.travellers()>=r.maxPassengers()||i.children>=(((e=r.selectedDestination())==null?null:e.mc)??r.configuration().mc)||i.adults+i.children>=(((e=r.selectedDestination())==null?null:e.mgpr)??r.configuration().mgpr))}}function XH(t,n){if(t&1&&(_(0,"mat-option",33),L(1),b()),t&2){let e=n.$implicit;C("value",e),p(),ie(e)}}function JH(t,n){if(t&1){let e=ve();_(0,"li",29)(1,"span",30),L(2),b(),_(3,"mat-form-field",31)(4,"mat-select",32),I("openedChange",function(r){M(e);let o=y(4);return k(o.canClose.emit(!r))}),Kt("ngModelChange",function(r){let o=M(e).$implicit;return Lt(o.value,r)||(o.value=r),k(r)}),on(5,XH,2,2,"mat-option",33,bi),b()()()}if(t&2){let e=n.$implicit,i=n.$index,r=y(4);p(2),io("",r.resourceLabels().ChildText,"",i+1),p(2),Yt("ngModel",e.value),C("hideSingleSelectionIndicator",!0),p(),an(r.validAges())}}function ez(t,n){if(t&1&&(_(0,"div",21)(1,"div",27),L(2),b(),_(3,"ul",28),on(4,JH,7,4,"li",29,bi),b()()),t&2){let e=y().$implicit,i=y(2);p(2),qe(" ",i.resourceLabels().ChildAgesText," "),p(2),an(e.ages)}}function tz(t,n){t&1&&O(0,"hr")}function nz(t,n){if(t&1){let e=ve();_(0,"li",10)(1,"span",11),L(2),b(),_(3,"div",12)(4,"div",13)(5,"div",14)(6,"span",6),L(7),b()(),_(8,"div",12)(9,"button",15),I("click",function(){let r=M(e).$index,o=y(2);return k(o.decrementAdults(r))}),O(10,"deal-icon",16),b(),_(11,"span",17),L(12),b(),_(13,"button",18),I("click",function(){let r=M(e).$index,o=y(2);return k(o.incrementAdults(r))}),O(14,"deal-icon",19),b()()(),q(15,ZH,14,6,"div",20),b(),q(16,ez,6,1,"div",21),q(17,tz,1,0,"hr"),b()}if(t&2){let e,i,r,o,a=n.$implicit,s=n.$index,l=n.$count,c=y(2);p(2),io("",((e=c.resourceLabels().SingleRoomText)==null||(e=e.replace("{0}",""))==null?null:e.replace("s",""))+" ","",s+1),p(5),ie(c.resourceLabels().AdultText),p(2),C("disabled",a.adults<=1),p(3),ie(a.adults),p(),C("disabled",c.travellers()>=c.maxPassengers()||a.adults>=(((i=c.selectedDestination())==null?null:i.ma)??c.configuration().ma)||a.adults+a.children>=(((i=c.selectedDestination())==null?null:i.mgpr)??c.configuration().mgpr)),p(2),Y(((r=c.selectedDestination())==null?null:r.ac)??c.configuration().ac?15:-1),p(),Y((((o=c.selectedDestination())==null?null:o.ac)??c.configuration().ac)&&a.children>0?16:-1),p(),Y(s!==l-1?17:-1)}}function iz(t,n){if(t&1&&(_(0,"ul",2),on(1,nz,18,9,"li",10,bi),b()),t&2){let e=y();p(),an(e.roomDetails())}}function rz(t,n){if(t&1){let e=ve();_(0,"div",7)(1,"button",34),I("click",function(){M(e);let r=y();return k(r.addRoom())}),O(2,"deal-icon",19),_(3,"span",6),L(4),b()()()}if(t&2){let e=y();p(),C("disabled",e.travellers()>=e.maxPassengers()),p(3),ie(e.resourceLabels().AddRoomButton)}}var Kf=class t{constructor(n,e,i,r,o){this.injector=n;this.elementRef=e;this.overlayRef=i;this.configurationService=r;this.resourceLabelService=o;this.resourceLabels.set(o.getLabels()),this.configuration.set(r.configuration??new Et)}dynamicPackageId=Vt.required();selectedDestination=Vt();roomDetails=oe.required();rooms=oe.required();closeRequested=Di();refreshRequested=Di();canClose=Di();travellers=ke(()=>{var n=this.refreshFlag();return this.roomDetails().reduce(function(e,i){return e+i.adults+i.children},0)});children=ke(()=>{var n=this.refreshFlag();return this.roomDetails().reduce(function(e,i){return e+i.children},0)});validAges=ke(()=>{let n=[],e=this.selectedDestination()?.mca??this.configuration().mca??17;for(let i=0;i<=e;i++)n.push(i);return n});resourceLabels=oe(new Xt);configuration=oe(new Et);maxRooms=ke(()=>this.selectedDestination()?.mr??this.configuration().mr);maxPassengers=ke(()=>{let n=this.selectedDestination()?.mr??this.configuration().mr,e=this.selectedDestination()?.mgpr??this.configuration().mgpr;return n*e});refreshFlag=oe(0);addRoom(){if(!(this.rooms()>=(this.selectedDestination()?.mr??this.configuration().mr))){this.rooms.set(this.rooms()+1),this.updateRooms();var n=this;setTimeout(function(){n.overlayRef.overlayRef.updatePosition()},0)}}removeRoom(){this.rooms.set(this.rooms()-1),this.updateRooms();var n=this;setTimeout(function(){n.overlayRef.overlayRef.updatePosition()},0)}updateRooms(){let n=this.roomDetails(),e=[...n];if(this.rooms()>n.length){let i=new Ra;i.adults=(this.selectedDestination()?.ma??this.configuration().ma)>1?2:1,i.children=0,i.ages=Array.from({length:i.children},()=>new Io),e.push(i)}else this.rooms()n.ages.length?n.ages.push(new Io):n.childreni.maxRooms()),p(2),ie(i.resourceLabels().RoomGuestsDoneButton))},dependencies:[uo,Hs,va,bn,Ar,ri,Rr,il,vn,Bn,LS,hy,fy,jn,gy,Gc,Jt],encapsulation:2})};var by=new D("CDK_TREE_NODE_OUTLET_NODE"),Qf=(()=>{class t{viewContainer=d(ht);_node=d(by,{optional:!0});constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkTreeNodeOutlet",""]]})}return t})(),_y=class{$implicit;level;index;count;constructor(n){this.$implicit=n}},Zf=(()=>{class t{template=d(Rt);when;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return t})();function YM(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var sl=(()=>{class t{_differs=d(sc);_changeDetectorRef=d(Ae);_elementRef=d(N);_dir=d(et);_onDestroy=new S;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new wn({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new wn([]);_nodeType=new wn(null);_nodes=new wn(new Map);_keyManagerNodes=new wn([]);_keyManagerFactory=d(gS);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(i=>!i.when);e.length>1,this._defaultNodeDef=e[0]}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e)}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new oi(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;VS(this._dataSource)?e=this._dataSource.connect(this):zr(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=Te(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(Se(this._onDestroy)).subscribe(i=>{this._renderDataChanges(i)}))}_getRenderData(e){let i=this._getExpansionModel();return Ur([e,this._nodeType,i.changed.pipe(tt(null),Vi(r=>{this._emitExpansionChanges(r)}))]).pipe(At(([r,o])=>o===null?Te({renderNodes:r,flattenedNodes:null,nodeType:o}):this._computeRenderingData(r,o).pipe(_e(a=>Ie(V({},a),{nodeType:o})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes)}_emitExpansionChanges(e){if(!e)return;let i=this._nodes.value;for(let r of e.added)i.get(r)?._emitExpansionState(!0);for(let r of e.removed)i.get(r)?._emitExpansionState(!1)}_initializeKeyManager(){let e=Ur([this._keyManagerNodes,this._nodes]).pipe(_e(([r,o])=>r.reduce((a,s)=>{let l=o.get(this._getExpansionKey(s));return l&&a.push(l),a},[]))),i={trackBy:r=>this._getExpansionKey(r.data),skipPredicate:r=>!!r.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,i)}_initializeDataDiffer(){let e=this.trackBy??((i,r)=>this._getExpansionKey(r));this._dataDiffer=this._differs.find([]).create(e)}_checkTreeControlUsage(){}renderNodeChanges(e,i=this._dataDiffer,r=this._nodeOutlet.viewContainer,o){let a=i.diff(e);!a&&!this._viewInit||(a?.forEachOperation((s,l,c)=>{if(s.previousIndex==null)this.insertNode(e[c],c,r,o);else if(c==null)r.remove(l);else{let u=r.get(l);r.move(u,c)}}),a?.forEachIdentityChange(s=>{let l=s.item;if(s.currentIndex!=null){let c=r.get(s.currentIndex);c.context.$implicit=l}}),o?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(e,i){if(this._nodeDefs.length===1)return this._nodeDefs.first;let r=this._nodeDefs.find(o=>o.when&&o.when(i,e))||this._defaultNodeDef;return r}insertNode(e,i,r,o){let a=this._getLevelAccessor(),s=this._getNodeDef(e,i),l=this._getExpansionKey(e),c=new _y(e);c.index=i,o??=this._parents.get(l)??void 0,a?c.level=a(e):o!==void 0&&this._levels.has(this._getExpansionKey(o))?c.level=this._levels.get(this._getExpansionKey(o))+1:c.level=0,this._levels.set(l,c.level),(r||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,c,i),Na.mostRecentTreeNode&&(Na.mostRecentTreeNode.data=e)}isExpanded(e){return!!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e))}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e))}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e))}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e))}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let i=this._expansionModel;i.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(Ze(1),Se(this._onDestroy)).subscribe(r=>{i.select(...r.map(o=>this._getExpansionKey(o)))})}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let i=this._expansionModel;i.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(Ze(1),Se(this._onDestroy)).subscribe(r=>{i.deselect(...r.map(o=>this._getExpansionKey(o)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.select(...e))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.deselect(...e))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let i=this._getLevelAccessor(),r=this._expansionModel??this.treeControl?.expansionModel;if(!r)return Te([]);let o=this._getExpansionKey(e),a=r.changed.pipe(At(l=>l.added.includes(o)?Te(!0):l.removed.includes(o)?Te(!1):cr),tt(this.isExpanded(e)));if(i)return Ur([a,this._flattenedNodes]).pipe(_e(([l,c])=>l?this._findChildrenByLevel(i,c,e,1):[]));let s=this._getChildrenAccessor();if(s)return Ca(s(e)??[]);throw YM()}_findChildrenByLevel(e,i,r,o){let a=this._getExpansionKey(r),s=i.findIndex(m=>this._getExpansionKey(m)===a),l=e(r),c=l+o,u=[];for(let m=s+1;mthis._getExpansionKey(o)===r)+1}_getNodeParent(e){let i=this._parents.get(this._getExpansionKey(e.data));return i&&this._nodes.value.get(this._getExpansionKey(i))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(_e(i=>i.reduce((r,o)=>{let a=this._nodes.value.get(this._getExpansionKey(o));return a&&r.push(a),r},[])))}_sendKeydownToKeyManager(e){if(e.target===this._elementRef.nativeElement)this._keyManager.onKeydown(e);else{let i=this._nodes.getValue();for(let[,r]of i)if(e.target===r._elementRef.nativeElement){this._keyManager.onKeydown(e);break}}}_getDescendants(e){if(this.treeControl)return Te(this.treeControl.getDescendants(e));if(this.levelAccessor){let i=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return Te(i)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(Gd((i,r)=>(i.push(...r),i),[]));throw YM()}_getAllChildrenRecursively(e){return this.childrenAccessor?Ca(this.childrenAccessor(e)).pipe(Ze(1),At(i=>{for(let r of i)this._parents.set(this._getExpansionKey(r),e);return Te(...i).pipe(Ya(r=>ci(Te([r]),this._getAllChildrenRecursively(r))))})):Te([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let i=this._getExpansionKey(e),r=this._parents.get(i),o=r?this._getExpansionKey(r):null;return this._ariaSets.get(o)??[e]}_findParentForNode(e,i,r){if(!r.length)return null;let o=this._levels.get(this._getExpansionKey(e))??0;for(let a=i-1;a>=0;a--){let s=r[a];if((this._levels.get(this._getExpansionKey(s))??0){let a=this._getExpansionKey(o);this._parents.has(a)||this._parents.set(a,null),this._levels.set(a,i);let s=Ca(r(o));return ci(Te([o]),s.pipe(Ze(1),Vi(l=>{this._ariaSets.set(a,[...l??[]]);for(let c of l??[]){let u=this._getExpansionKey(c);this._parents.set(u,o),this._levels.set(u,i+1)}}),At(l=>l?this._flattenNestedNodesWithExpansion(l,i+1).pipe(_e(c=>this.isExpanded(o)?c:[])):Te([]))))}),Gd((o,a)=>(o.push(...a),o),[])):Te([...e])}_computeRenderingData(e,i){if(this.childrenAccessor&&i==="flat")return this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(_e(r=>({renderNodes:r,flattenedNodes:r})));if(this.levelAccessor&&i==="nested"){let r=this.levelAccessor;return Te(e.filter(o=>r(o)===0)).pipe(_e(o=>({renderNodes:o,flattenedNodes:e})),Vi(({flattenedNodes:o})=>{this._calculateParents(o)}))}else return i==="flat"?Te({renderNodes:e,flattenedNodes:e}).pipe(Vi(({flattenedNodes:r})=>{this._calculateParents(r)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(_e(r=>({renderNodes:e,flattenedNodes:r}))))}_updateCachedData(e){this._flattenedNodes.next(e)}_updateKeyManagerItems(e){this._keyManagerNodes.next(e)}_calculateParents(e){let i=this._getLevelAccessor();if(i){this._clearPreviousCache();for(let r=0;r{i.push(this._getExpansionKey(o.data)),r.push(this._getDescendants(o.data))}),r.length>0?Ur(r).pipe(Ze(1),Se(this._onDestroy)).subscribe(o=>{o.forEach(a=>a.forEach(s=>i.push(this._getExpansionKey(s)))),e(i)}):e(i)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["cdk-tree"]],contentQueries:function(i,r,o){if(i&1&&We(o,Zf,5),i&2){let a;j(a=H())&&(r._nodeDefs=a)}},viewQuery:function(i,r){if(i&1&&ee(Qf,7),i&2){let o;j(o=H())&&(r._nodeOutlet=o.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(i,r){i&1&&I("keydown",function(a){return r._sendKeydownToKeyManager(a)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(i,r){i&1&&ks(0,0)},dependencies:[Qf],encapsulation:2})}return t})(),Na=(()=>{class t{_elementRef=d(N);_tree=d(sl);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new R;expandedChange=new R;static mostRecentTreeNode=null;_destroyed=new S;_dataChanges=new S;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next())}_data;get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=d(Ae);constructor(){t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=oz(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(_e(()=>this.isExpanded),Ka(),Se(this._destroyed)).pipe(Se(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(e){this.expandedChange.emit(e)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(i,r){i&1&&I("click",function(){return r._setActiveItem()})("focus",function(){return r._focusItem()}),i&2&&(Ot("tabIndex",r._tabindex),W("aria-expanded",r._getAriaExpanded())("aria-level",r.level+1)("aria-posinset",r._getPositionInSet())("aria-setsize",r._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",Q],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",Q],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return t})();function oz(t){let n=t.parentElement;for(;n&&!az(n);)n=n.parentElement;return n?n.classList.contains("cdk-nested-tree-node")?sn(n.getAttribute("aria-level")):0:-1}function az(t){let n=t.classList;return!!(n?.contains("cdk-nested-tree-node")||n?.contains("cdk-tree"))}var sz=/([A-Za-z%]+)$/,vy=(()=>{class t{_treeNode=d(Na);_tree=d(sl);_element=d(N);_dir=d(et,{optional:!0});_currentPadding;_destroyed=new S;indentUnits="px";get level(){return this._level}set level(e){this._setLevelInput(e)}_level;get indent(){return this._indent}set indent(e){this._setIndentInput(e)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe(Se(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,i=this._level==null?e:this._level;return typeof i=="number"?`${i*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){let i=this._paddingIndent();if(i!==this._currentPadding||e){let r=this._element.nativeElement,o=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",a=o==="paddingLeft"?"paddingRight":"paddingLeft";r.style[o]=i||"",r.style[a]="",this._currentPadding=i}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding()}_setIndentInput(e){let i=e,r="px";if(typeof e=="string"){let o=e.split(sz);i=o[0],r=o[1]||r}this.indentUnits=r,this._indent=sn(i),this._setPadding()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",sn],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return t})(),yy=(()=>{class t{_tree=d(sl);_treeNode=d(Na);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(i,r){i&1&&I("click",function(a){return r._toggle(),a.stopPropagation()})("keydown.Enter",function(a){return r._toggle(),a.preventDefault()})("keydown.Space",function(a){return r._toggle(),a.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",Q]}})}return t})();var KM=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({})}return t})();function lz(t){return!!t._isNoopTreeKeyManager}var ZM=(()=>{class t extends Na{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return lz(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}constructor(){super();let e=d(new Kn("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(e)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(i,r){i&1&&I("click",function(){return r._focusItem()}),i&2&&(Ot("tabIndex",r._getTabindexAttribute()),W("aria-expanded",r._getAriaExpanded())("aria-level",r.level+1)("aria-posinset",r._getPositionInSet())("aria-setsize",r._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",e=>e==null?0:sn(e)],disabled:[2,"disabled","disabled",Q]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[pe([{provide:Na,useExisting:t}]),ye]})}return t})(),XM=(()=>{class t extends Zf{data;static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[pe([{provide:Zf,useExisting:t}]),ye]})}return t})();var JM=(()=>{class t extends vy{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",sn],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[pe([{provide:vy,useExisting:t}]),ye]})}return t})(),QM=(()=>{class t{viewContainer=d(ht);_node=d(by,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[pe([{provide:Qf,useExisting:t}])]})}return t})(),ek=(()=>{class t extends sl{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275cmp=B({type:t,selectors:[["mat-tree"]],viewQuery:function(i,r){if(i&1&&ee(QM,7),i&2){let o;j(o=H())&&(r._nodeOutlet=o.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[pe([{provide:sl,useExisting:t}]),ye],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(i,r){i&1&&ks(0,0)},dependencies:[QM],styles:[`.mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0} `],encapsulation:2})}return t})(),tk=(()=>{class t extends yy{static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[pe([{provide:yy,useExisting:t}]),ye]})}return t})();var nk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[KM,he,he]})}return t})();var ik=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,he]})}return t})();var dz=["*"],uz=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} `,mz=["unscopedContent"];var fz=[[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["mat-divider"]],[["","matListItemAvatar",""],["","matListItemIcon",""]]],hz=["[matListItemTitle]","[matListItemLine]","*","mat-divider","[matListItemAvatar],[matListItemIcon]"];function pz(t,n){t&1&&fe(0,4)}function gz(t,n){if(t&1&&(_(0,"div",11),O(1,"input",12),_(2,"div",13),Rn(),_(3,"svg",14),O(4,"path",15),b(),na(),O(5,"div",16),b()()),t&2){let e=y();K("mdc-checkbox--disabled",e.disabled),p(),C("checked",e.selected)("disabled",e.disabled)}}function _z(t,n){if(t&1&&(_(0,"div",17),O(1,"input",18),_(2,"div",19),O(3,"div",20)(4,"div",21),b()()),t&2){let e=y();K("mdc-radio--disabled",e.disabled),p(),C("checked",e.selected)("disabled",e.disabled)}}function bz(t,n){}function vz(t,n){if(t&1&&(_(0,"span",4),Fe(1,bz,0,0,"ng-template",6),b()),t&2){y();let e=He(3);p(),C("ngTemplateOutlet",e)}}function yz(t,n){}function Dz(t,n){if(t&1&&(_(0,"span",5),Fe(1,yz,0,0,"ng-template",6),b()),t&2){y();let e=He(5);p(),C("ngTemplateOutlet",e)}}function Cz(t,n){}function wz(t,n){if(t&1&&Fe(0,Cz,0,0,"ng-template",6),t&2){y();let e=He(1);C("ngTemplateOutlet",e)}}function Ez(t,n){}function xz(t,n){if(t&1&&(_(0,"span",9),Fe(1,Ez,0,0,"ng-template",6),b()),t&2){y();let e=He(3);p(),C("ngTemplateOutlet",e)}}function Iz(t,n){}function Tz(t,n){if(t&1&&(_(0,"span",9),Fe(1,Iz,0,0,"ng-template",6),b()),t&2){y();let e=He(5);p(),C("ngTemplateOutlet",e)}}function Sz(t,n){}function Mz(t,n){if(t&1&&Fe(0,Sz,0,0,"ng-template",6),t&2){y();let e=He(1);C("ngTemplateOutlet",e)}}var ok=new D("ListOption"),kz=(()=>{class t{_elementRef=d(N);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),Az=(()=>{class t{_elementRef=d(N);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})();var ak=(()=>{class t{_listOption=d(ok,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,hostVars:4,hostBindings:function(i,r){i&2&&K("mdc-list-item__start",r._isAlignedAtStart())("mdc-list-item__end",!r._isAlignedAtStart())}})}return t})(),Rz=(()=>{class t extends ak{static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ye]})}return t})(),Oz=(()=>{class t extends ak{static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ye]})}return t})(),Nz=new D("MAT_LIST_CONFIG"),Dy=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Nt(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(Nt(e))}_disabled=Me(!1);_defaultOptions=d(Nz,{optional:!0});static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,hostVars:1,hostBindings:function(i,r){i&2&&W("aria-disabled",r.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),rk=(()=>{class t{_elementRef=d(N);_ngZone=d(F);_listBase=d(Dy,{optional:!0});_platform=d(Ee);_hostElement;_isButtonElement;_noopAnimations=$e();_avatars;_icons;set lines(e){this._explicitLines=Vn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=Nt(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(Nt(e))}_disabled=Me(!1);_subscriptions=new ge;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(Ke).load(ni);let e=d(Vc,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new Ea(this,this._ngZone,this._hostElement,this._platform,d(U)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(at(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let i=this._explicitLines??this._inferLinesFromContent(),r=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",i<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",i===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",i===3),this._hasUnscopedTextContent){let o=this._titles.length===0&&i===1;r.classList.toggle("mdc-list-item__primary-text",o),r.classList.toggle("mdc-list-item__secondary-text",!o)}else r.classList.remove("mdc-list-item__primary-text"),r.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,contentQueries:function(i,r,o){if(i&1&&(We(o,Rz,4),We(o,Oz,4)),i&2){let a;j(a=H())&&(r._avatars=a),j(a=H())&&(r._icons=a)}},hostVars:4,hostBindings:function(i,r){i&2&&(W("aria-disabled",r.disabled)("disabled",r._isButtonElement&&r.disabled||null),K("mdc-list-item--disabled",r.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var sk=new D("SelectionList"),wy=(()=>{class t extends rk{_selectionList=d(sk);_changeDetectorRef=d(Ae);_lines;_titles;_unscopedContent;selectedChange=new R;togglePosition="after";get checkboxPosition(){return this.togglePosition}set checkboxPosition(e){this.togglePosition=e}get color(){return this._color||this._selectionList.color}set color(e){this._color=e}_color;get value(){return this._value}set value(e){this.selected&&e!==this.value&&this._inputsInitialized&&(this.selected=!1),this._value=e}_value;get selected(){return this._selectionList.selectedOptions.isSelected(this)}set selected(e){let i=Nt(e);i!==this._selected&&(this._setSelected(i),(i||this._selectionList.multiple)&&this._selectionList._reportValueChange())}_selected=!1;_inputsInitialized=!1;ngOnInit(){let e=this._selectionList;e._value&&e._value.some(r=>e.compareWith(this._value,r))&&this._setSelected(!0);let i=this._selected;Promise.resolve().then(()=>{(this._selected||i)&&(this.selected=!0,this._changeDetectorRef.markForCheck())}),this._inputsInitialized=!0}ngOnDestroy(){super.ngOnDestroy(),this.selected&&Promise.resolve().then(()=>{this.selected=!1})}toggle(){this.selected=!this.selected}focus(){this._hostElement.focus()}getLabel(){return(this._titles?.get(0)?._elementRef.nativeElement||this._unscopedContent?.nativeElement)?.textContent||""}_hasCheckboxAt(e){return this._selectionList.multiple&&this._getTogglePosition()===e}_hasRadioAt(e){return!this._selectionList.multiple&&this._getTogglePosition()===e&&!this._selectionList.hideSingleSelectionIndicator}_hasIconsOrAvatarsAt(e){return this._hasProjected("icons",e)||this._hasProjected("avatars",e)}_hasProjected(e,i){return this._getTogglePosition()!==i&&(e==="avatars"?this._avatars.length!==0:this._icons.length!==0)}_handleBlur(){this._selectionList._onTouched()}_getTogglePosition(){return this.togglePosition||"after"}_setSelected(e){return e===this._selected?!1:(this._selected=e,e?this._selectionList.selectedOptions.select(this):this._selectionList.selectedOptions.deselect(this),this.selectedChange.emit(e),this._changeDetectorRef.markForCheck(),!0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_toggleOnInteraction(){this.disabled||(this._selectionList.multiple?(this.selected=!this.selected,this._selectionList._emitChangeEvent([this])):this.selected||(this.selected=!0,this._selectionList._emitChangeEvent([this])))}_setTabindex(e){this._hostElement.setAttribute("tabindex",e+"")}_hasBothLeadingAndTrailing(){let e=this._hasProjected("avatars","before")||this._hasProjected("icons","before")||this._hasCheckboxAt("before")||this._hasRadioAt("before"),i=this._hasProjected("icons","after")||this._hasProjected("avatars","after")||this._hasCheckboxAt("after")||this._hasRadioAt("after");return e&&i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275cmp=B({type:t,selectors:[["mat-list-option"]],contentQueries:function(i,r,o){if(i&1&&(We(o,Az,5),We(o,kz,5)),i&2){let a;j(a=H())&&(r._lines=a),j(a=H())&&(r._titles=a)}},viewQuery:function(i,r){if(i&1&&ee(mz,5),i&2){let o;j(o=H())&&(r._unscopedContent=o.first)}},hostAttrs:["role","option",1,"mat-mdc-list-item","mat-mdc-list-option","mdc-list-item"],hostVars:27,hostBindings:function(i,r){i&1&&I("blur",function(){return r._handleBlur()})("click",function(){return r._toggleOnInteraction()}),i&2&&(W("aria-selected",r.selected),K("mdc-list-item--selected",r.selected&&!r._selectionList.multiple&&r._selectionList.hideSingleSelectionIndicator)("mdc-list-item--with-leading-avatar",r._hasProjected("avatars","before"))("mdc-list-item--with-leading-icon",r._hasProjected("icons","before"))("mdc-list-item--with-trailing-icon",r._hasProjected("icons","after"))("mat-mdc-list-option-with-trailing-avatar",r._hasProjected("avatars","after"))("mdc-list-item--with-leading-checkbox",r._hasCheckboxAt("before"))("mdc-list-item--with-trailing-checkbox",r._hasCheckboxAt("after"))("mdc-list-item--with-leading-radio",r._hasRadioAt("before"))("mdc-list-item--with-trailing-radio",r._hasRadioAt("after"))("mat-mdc-list-item-both-leading-and-trailing",r._hasBothLeadingAndTrailing())("mat-accent",r.color!=="primary"&&r.color!=="warn")("mat-warn",r.color==="warn")("_mat-animation-noopable",r._noopAnimations))},inputs:{togglePosition:"togglePosition",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected"},outputs:{selectedChange:"selectedChange"},exportAs:["matListOption"],features:[pe([{provide:rk,useExisting:t},{provide:ok,useExisting:t}]),ye],ngContentSelectors:hz,decls:20,vars:4,consts:[["icons",""],["checkbox",""],["radio",""],["unscopedContent",""],[1,"mdc-list-item__start","mat-mdc-list-option-checkbox-before"],[1,"mdc-list-item__start","mat-mdc-list-option-radio-before"],[3,"ngTemplateOutlet"],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mdc-list-item__end"],[1,"mat-focus-indicator"],[1,"mdc-checkbox"],["type","checkbox",1,"mdc-checkbox__native-control",3,"checked","disabled"],[1,"mdc-checkbox__background"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],[1,"mdc-radio"],["type","radio",1,"mdc-radio__native-control",3,"checked","disabled"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"]],template:function(i,r){if(i&1){let o=ve();je(fz),Fe(0,pz,1,0,"ng-template",null,0,Cr)(2,gz,6,4,"ng-template",null,1,Cr)(4,_z,5,4,"ng-template",null,2,Cr),q(6,vz,2,1,"span",4)(7,Dz,2,1,"span",5),q(8,wz,1,1,null,6),_(9,"span",7),fe(10),fe(11,1),_(12,"span",8,3),I("cdkObserveContent",function(){return M(o),k(r._updateItemLines(!0))}),fe(14,2),b()(),q(15,xz,2,1,"span",9)(16,Tz,2,1,"span",9),q(17,Mz,1,1,null,6),fe(18,3),O(19,"div",10)}i&2&&(p(6),Y(r._hasCheckboxAt("before")?6:r._hasRadioAt("before")?7:-1),p(2),Y(r._hasIconsOrAvatarsAt("before")?8:-1),p(7),Y(r._hasCheckboxAt("after")?15:r._hasRadioAt("after")?16:-1),p(2),Y(r._hasIconsOrAvatarsAt("after")?17:-1))},dependencies:[fc,sS],styles:[`.mat-mdc-list-option-with-trailing-avatar.mdc-list-item,[dir=rtl] .mat-mdc-list-option-with-trailing-avatar.mdc-list-item{padding-left:0;padding-right:0}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{margin-left:16px;margin-right:16px;width:40px;height:40px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mat-mdc-list-option-with-trailing-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mat-mdc-list-option-with-trailing-avatar .mdc-list-item__end{border-radius:50%}.mat-mdc-list-option .mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mat-mdc-list-option .mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled{opacity:.5}}.mat-mdc-list-option .mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mat-mdc-list-option .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-list-option .mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mat-mdc-list-option .mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__checkmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mat-mdc-list-option .mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mat-mdc-list-option .mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mat-mdc-list-option .mdc-checkbox__mixedmark{margin:0 1px}}.mat-mdc-list-option .mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mat-mdc-list-option .mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mat-mdc-list-option .mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-list-option .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-list-option .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-list-option .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-list-option .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-list-option .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-list-option .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-list-option .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-list-option .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-list-option .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-list-option._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-list-option._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__start>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-list-option._mat-animation-noopable>.mdc-list-item__end>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-list-option .mdc-checkbox__native-control,.mat-mdc-list-option .mdc-radio__native-control{display:none}@media(forced-colors: active){.mat-mdc-list-option.mdc-list-item--selected::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.mat-mdc-list-option.mdc-list-item--selected [dir=rtl]::after{right:auto;left:16px}} `],encapsulation:2,changeDetection:0})}return t})();var Fz={provide:Ji,useExisting:lt(()=>Ey),multi:!0},Cy=class{source;options;constructor(n,e){this.source=n,this.options=e}},Ey=(()=>{class t extends Dy{_element=d(N);_ngZone=d(F);_renderer=d(Pe);_initialized=!1;_keyManager;_listenerCleanups;_destroyed=new S;_isDestroyed;_onChange=e=>{};_items;selectionChange=new R;color="accent";compareWith=(e,i)=>e===i;get multiple(){return this._multiple}set multiple(e){let i=Nt(e);i!==this._multiple&&(this._multiple=i,this.selectedOptions=new oi(this._multiple,this.selectedOptions.selected))}_multiple=!0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=Nt(e)}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;selectedOptions=new oi(this._multiple);_value;_onTouched=()=>{};_changeDetectorRef=d(Ae);constructor(){super(),this._isNonInteractive=!1}ngAfterViewInit(){this._initialized=!0,this._setupRovingTabindex(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen(this._element.nativeElement,"focusin",this._handleFocusin),this._renderer.listen(this._element.nativeElement,"focusout",this._handleFocusout)]}),this._value&&this._setOptionsFromValues(this._value),this._watchForSelectionChange()}ngOnChanges(e){let i=e.disabled,r=e.disableRipple,o=e.hideSingleSelectionIndicator;(r&&!r.firstChange||i&&!i.firstChange||o&&!o.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){this._keyManager?.destroy(),this._listenerCleanups?.forEach(e=>e()),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(e){this._element.nativeElement.focus(e)}selectAll(){return this._setAllOptionsSelected(!0)}deselectAll(){return this._setAllOptionsSelected(!1)}_reportValueChange(){if(this.options&&!this._isDestroyed){let e=this._getSelectedOptionValues();this._onChange(e),this._value=e}}_emitChangeEvent(e){this.selectionChange.emit(new Cy(this,e))}writeValue(e){this._value=e,this.options&&this._setOptionsFromValues(e||[])}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this._markOptionsForCheck()}get disabled(){return this._selectionListDisabled()}set disabled(e){this._selectionListDisabled.set(Nt(e)),this._selectionListDisabled()&&this._keyManager?.setActiveItem(-1)}_selectionListDisabled=Me(!1);registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}_watchForSelectionChange(){this.selectedOptions.changed.pipe(Se(this._destroyed)).subscribe(e=>{for(let i of e.added)i.selected=!0;for(let i of e.removed)i.selected=!1;this._containsFocus()||this._resetActiveOption()})}_setOptionsFromValues(e){this.options.forEach(i=>i._setSelected(!1)),e.forEach(i=>{let r=this.options.find(o=>o.selected?!1:this.compareWith(o.value,i));r&&r._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(e=>e.selected).map(e=>e.value)}_markOptionsForCheck(){this.options&&this.options.forEach(e=>e._markForCheck())}_setAllOptionsSelected(e,i){let r=[];return this.options.forEach(o=>{(!i||!o.disabled)&&o._setSelected(e)&&r.push(o)}),r.length&&this._reportValueChange(),r}get options(){return this._items}_handleKeydown(e){let i=this._keyManager.activeItem;if((e.keyCode===13||e.keyCode===32)&&!this._keyManager.isTyping()&&i&&!i.disabled)e.preventDefault(),i._toggleOnInteraction();else if(e.keyCode===65&&this.multiple&&!this._keyManager.isTyping()&&Je(e,"ctrlKey","metaKey")){let r=this.options.some(o=>!o.disabled&&!o.selected);e.preventDefault(),this._emitChangeEvent(this._setAllOptionsSelected(r,!0))}else this._keyManager.onKeydown(e)}_handleFocusout=()=>{setTimeout(()=>{this._containsFocus()||this._resetActiveOption()})};_handleFocusin=e=>{if(this.disabled)return;let i=this._items.toArray().findIndex(r=>r._elementRef.nativeElement.contains(e.target));i>-1?this._setActiveOption(i):this._resetActiveOption()};_setupRovingTabindex(){this._keyManager=new Pc(this._items).withHomeAndEnd().withTypeAhead().withWrap().skipPredicate(()=>this.disabled),this._resetActiveOption(),this._keyManager.change.subscribe(e=>this._setActiveOption(e)),this._items.changes.pipe(Se(this._destroyed)).subscribe(()=>{let e=this._keyManager.activeItem;(!e||this._items.toArray().indexOf(e)===-1)&&this._resetActiveOption()})}_setActiveOption(e){this._items.forEach((i,r)=>i._setTabindex(r===e?0:-1)),this._keyManager.updateActiveItem(e)}_resetActiveOption(){if(this.disabled){this._setActiveOption(-1);return}let e=this._items.find(i=>i.selected&&!i.disabled)||this._items.first;this._setActiveOption(e?this._items.toArray().indexOf(e):-1)}_containsFocus(){let e=Ln();return e&&this._element.nativeElement.contains(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-selection-list"]],contentQueries:function(i,r,o){if(i&1&&We(o,wy,5),i&2){let a;j(a=H())&&(r._items=a)}},hostAttrs:["role","listbox",1,"mat-mdc-selection-list","mat-mdc-list-base","mdc-list"],hostVars:1,hostBindings:function(i,r){i&1&&I("keydown",function(a){return r._handleKeydown(a)}),i&2&&W("aria-multiselectable",r.multiple)},inputs:{color:"color",compareWith:"compareWith",multiple:"multiple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator",disabled:"disabled"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[pe([Fz,{provide:Dy,useExisting:t},{provide:sk,useExisting:t}]),ye,Be],ngContentSelectors:dz,decls:1,vars:0,template:function(i,r){i&1&&(je(),fe(0))},styles:[uz],encapsulation:2,changeDetection:0})}return t})(),Xf=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[Us,he,tr,Vf,ik]})}return t})();var lk=["destinationInput"],Lz=["destSearch"],Vz=["autoDestination"],Bz=["rightPanel"],jz=["leftPanel"],Hz=["regionTree"],zz=t=>({selected:t}),Uz=t=>({promoted:t});function $z(t,n){t&1&&O(0,"deal-icon",20)}function Gz(t,n){t&1&&O(0,"deal-icon",21)}function Wz(t,n){if(t&1&&(_(0,"mat-option",17),q(1,$z,1,0,"deal-icon",20)(2,Gz,1,0,"deal-icon",21),O(3,"span",22),b()),t&2){let e=n.$implicit;C("value",e),p(),Y(e.level==2?1:2),p(2),C("innerHTML",e.t,eo)}}function qz(t,n){if(t&1&&(_(0,"div",18),L(1),b()),t&2){let e=y(2);p(),qe(" ",e.resourceLabels().NoResultsfound," ")}}function Yz(t,n){if(t&1){let e=ve();_(0,"mat-form-field",6)(1,"mat-label")(2,"span",14),L(3),b()(),_(4,"input",15,2),I("input",function(){M(e);let r=y();return k(r.filterViewDestinations())})("focus",function(r){M(e);let o=y();return o.filterViewDestinations(),k(o.onFocus(r))}),b(),_(7,"mat-autocomplete",16,3),I("opened",function(){M(e);let r=y();return k(r.canClose.emit(!1))})("closed",function(){M(e);let r=y();return k(r.canClose.emit(!0))})("optionSelected",function(r){M(e);let o=y();return k(o.setSelection(r))}),on(9,Wz,4,3,"mat-option",17,bi),b(),q(11,qz,2,1,"div",18),O(12,"deal-icon",19),b()}if(t&2){let e=He(5),i=He(8),r=y();p(3),ie(r.resourceLabels().Search),p(),C("placeholder",pn(r.resourceLabels().SearchPlaceholder))("formControl",r.destinationControl)("matAutocomplete",i),W("aria-label",r.resourceLabels().BookingDestinationAriaText)("data-length",r.filteredDestinations.length),p(3),C("displayWith",r.displayDestination),p(2),an(r.filteredDestinations),p(2),Y(((e==null||e.value==null?null:e.value.length)??0)>0&&r.filteredDestinations.length==0&&r.isInputFocused(e)?11:-1)}}function Kz(t,n){t&1&&O(0,"deal-icon",25)}function Qz(t,n){t&1&&O(0,"deal-icon",26)}function Zz(t,n){if(t&1){let e=ve();_(0,"mat-tree-node",23),I("keydown.arrowright",function(){let r=M(e).$implicit;y();let o=He(8);return k(o.expand(r))})("keydown.arrowleft",function(){let r=M(e).$implicit;y();let o=He(8);return k(o.collapse(r))})("click",function(){let r=M(e).$implicit,o=y();return k(o.selectedRegion.set(r))})("activation",function(){let r=M(e).$implicit,o=y();return k(o.selectedRegion.set(r))}),L(1),_(2,"button",24),q(3,Kz,1,0,"deal-icon",25)(4,Qz,1,0,"deal-icon",26),b()()}if(t&2){let e,i,r=n.$implicit,o=y(),a=He(8);C("cdkTreeNodeTypeaheadLabel",r.t)("ngClass",gn(6,zz,((e=o.selectedRegion())==null?null:e.c)==r.c)),W("aria-selected",((i=o.selectedRegion())==null?null:i.c)==r.c?"true":null),p(),qe(" ",r.t," "),p(),W("aria-label","Toggle "+r.t),p(),Y(a.isExpanded(r)?3:4)}}function Xz(t,n){if(t&1){let e=ve();_(0,"mat-tree-node",27),I("keydown.arrowright",function(){M(e);let r=y();return k(r.focusResorts())})("click",function(){let r=M(e).$implicit,o=y();return k(o.setTreeSelection(r))})("activation",function(){let r=M(e).$implicit,o=y();return k(o.setTreeSelection(r))}),_(1,"mat-label"),L(2),b(),O(3,"button",28),b()}if(t&2){let e,i=n.$implicit,r=y();W("aria-selected",((e=r.selectedRegion())==null?null:e.c)==i.c?"true":null),p(2),ie(i.t)}}function Jz(t,n){if(t&1&&(_(0,"span",36),L(1," - "),b(),_(2,"span",37),L(3),b()),t&2){let e=y().$implicit;p(3),ie(e.p)}}function e3(t,n){if(t&1){let e=ve();_(0,"mat-list-option",35),I("keydown.arrowleft",function(){M(e);let r=y(3);return k(r.focusRegions())}),_(1,"span",9),L(2),b(),q(3,Jz,4,1),b()}if(t&2){let e=n.$implicit;C("value",e.c)("ngClass",gn(4,Uz,e.p)),p(2),ie(e.t),p(),Y(e.p?3:-1)}}function t3(t,n){if(t&1){let e=ve();_(0,"mat-selection-list",33),Kt("ngModelChange",function(r){M(e);let o=y(2);return Lt(o.destinationSelection,r)||(o.destinationSelection=r),k(r)}),I("selectionChange",function(){M(e);let r=y(2);return r.requestRefresh(),k(r.requestClose())}),on(1,e3,4,6,"mat-list-option",34,bi),b()}if(t&2){let e=y(2);Yt("ngModel",e.destinationSelection),C("multiple",!1),p(),an(e.filteredLeafDestinations())}}function n3(t,n){if(t&1&&O(0,"div",32),t&2){let e=y(2);C("innerHTML",e.resourceLabels().DestinationWelcomeMessage,eo)}}function i3(t,n){if(t&1&&(_(0,"div",13,4)(2,"h3",29),L(3),b(),_(4,"div",30),q(5,t3,3,2,"mat-selection-list",31)(6,n3,1,1,"div",32),b()()),t&2){let e=y();p(3),ie(e.resourceLabels().DestDropdownRightColHeadline),p(2),Y(e.selectedRegion()?5:6)}}var Jf=class t{constructor(n,e){this.configurationService=n;this.resourceLabelService=e;this.resourceLabels.set(e.getLabels()),this.configuration.set(n.configuration??new Et)}isModal=oe(!1);dynamicPackageId=Vt.required();destination=oe.required();destinationSelection=oe();closeRequested=Di();refreshRequested=Di();canClose=Di();selectedRegion=oe();filteredNonLeafDestinations=ke(()=>this.destinations());filteredLeafDestinations=ke(()=>{var n=[];if(n=n.concat((this.selectedRegion()?.d??[]).filter(i=>i.il!=!0)),n=n.concat((this.selectedRegion()?.d?.flatMap(i=>i.d??[])??[]).filter(i=>i.il!=!0)),n=n.sort((i,r)=>i.p!=null&&i.p!=null&&r.p!=null&&r.p!=null?i.tr.t?1:0:i.p!=null&&i.p!=null?-1e3:r.p!=null&&r.p!=null?1e3:i.tr.t?1:0),!this.isModal()&&this.selectedRegion()&&this.selectedRegion()?.pt?.includes(this.dynamicPackageId())==!0){var e=Object.assign({},this.selectedRegion());e.t=this.resourceLabels().DestDropdownSearch?.trim()+" "+e.t,n.unshift(e)}return n});filteredDestinations=[];destinations=ke(()=>{var n=(typeof structuredClone=="function"?structuredClone(this.configuration().ds):JSON.parse(JSON.stringify(this.configuration().ds)))??[];return n.forEach(e=>{if(e.d?.forEach(r=>{if(r.d?.forEach(a=>{a.level=2}),this.isModal()&&r?.pt?.includes(this.dynamicPackageId())==!0&&(r?.d?.length??0)>0){var o=Object.assign({},r);o.t=this.resourceLabels().DestDropdownSearch?.trim()+" "+o.t,o.il=null,o.d=[],r.d?.unshift(o)}r.d=r.d?.filter(a=>a.pt?.includes(this.dynamicPackageId())),r.level=1}),this.isModal()&&e?.pt?.includes(this.dynamicPackageId())==!0&&(e?.d?.length??0)>0){var i=Object.assign({},e);i.t=this.resourceLabels().DestDropdownSearch?.trim()+" "+i.t,i.d=[],e.d?.unshift(i)}e.d=e.d?.filter(r=>r.il!=!0&&r.pt?.includes(this.dynamicPackageId())||r.il==!0&&(r.d?.length??0)>0),e.level=0}),!this.isModal()&&(n?.findIndex(e=>e.il==!0)??-1)>=0&&(n?.findIndex(e=>e.il!=!0)??-1)&&(n=n?.filter(e=>e.il==!0)),n=n.filter(e=>e.il!=!0&&e.pt?.includes(this.dynamicPackageId())||e.il==!0&&(e.d?.length??0)>0),n});searchDestinations=ke(()=>{var n=(typeof structuredClone=="function"?structuredClone(this.destinations()):JSON.parse(JSON.stringify(this.destinations())))??[];return n?.forEach(e=>{e.d?.forEach(i=>{i.d?.forEach(r=>{r.t=r.t+", "+i.t})})}),n});destinationControl=new Mr(null,Xn.required);destinationInput;destSearch;destinationAutoComplete;destinationTrigger;rightPanel;leftPanel;regionTree;resourceLabels=oe(new Xt);configuration=oe(new Et);ngOnInit(){this.destinationSelection.subscribe(n=>this.destination.set(n&&(n?.length??0)>0?n[0]:"")),this.destinationSelection.set([this.destination()])}ngAfterViewInit(){this.expandTargetNode()}setSelection(n){this.destination.set(n.option.value.c),this.canClose.emit(!0),this.requestClose()}displayDestination(n){return n&&n.t?n.t:""}filterViewDestinations(){let n=this.destinationInput.nativeElement.value.toLowerCase();if(n.length<=0){this.filteredDestinations=[];return}var e=this.searchDestinations().filter(s=>s.pt?.includes(this.dynamicPackageId())&&s.t.toLowerCase().includes(n)),i=this.searchDestinations().flatMap(s=>s.d??[]).filter(s=>s&&s.pt?.includes(this.dynamicPackageId())&&s?.t.toLowerCase().includes(n)),r=this.searchDestinations().flatMap(s=>s.d?.flatMap(l=>l.d??[])??[]).filter(s=>s&&s.pt?.includes(this.dynamicPackageId())&&s?.t.toLowerCase().includes(n)),o=e.concat(i).concat(r).filter((s,l,c)=>c.indexOf(s)===l);this.configuration().bd&&(o=o.sort((s,l)=>(s.p!=null?-1e3:s.c.toLowerCase()==n?-500:s.t.indexOf(n))-(l.p!=null?-1e3:l.c.toLowerCase()==n?-500:l.t.indexOf(n)))),(this.configuration().fc??0)>0&&(o=o.slice(0,this.configuration().fc??5)),o=(typeof structuredClone=="function"?structuredClone(o):JSON.parse(JSON.stringify(o)))??[];var a=new RegExp("("+n+")","gi");o.forEach(s=>{s.t=s.t.replace(a,"$1")}),this.filteredDestinations=o}setTreeSelection(n){this.isModal()?(this.destinationSelection.set([n.c]),this.canClose.emit(!0),this.requestClose()):this.selectedRegion.set(n)}expandTargetNode(){if(this.destination())try{var n=this.filteredNonLeafDestinations().find(i=>(i.d?.findIndex(r=>(r.d?.findIndex(o=>o.c==this.destination())??-1)>=0)??-1)>=0);if(n!=null&&n!=null){this.regionTree?.expand(n);var e=n.d?.find(i=>(i.d?.findIndex(r=>r.c==this.destination())??-1)>=0);e!=null&&e!=null&&(this.selectedRegion.set(e),this.isModal()&&this.regionTree?.expand(e))}else if(n=this.filteredNonLeafDestinations().find(i=>(i.d?.findIndex(r=>r.c==this.destination())??-1)>=0),n!=null&&n!=null){var e=n.d?.find(r=>r.c==this.destination());e?.il==!0||this.isModal()?(this.regionTree?.expand(n),e!=null&&e!=null&&this.selectedRegion.set(e)):this.selectedRegion.set(n)}else n=this.filteredNonLeafDestinations().find(i=>i.c==this.destination()),n!=null&&n!=null&&this.selectedRegion.set(n)}catch{this.regionTree?.collapseAll()}}childrenAccessor=n=>this.isModal()?n.d??[]:(n.d??[]).filter(e=>e.il==!0);hasChild=(n,e)=>!!e.d&&e.d.length>0&&(this.isModal()||!this.isModal()&&e.d.findIndex(i=>i.il==!0)>=0);requestRefresh(){this.refreshRequested?.emit()}requestClose(){this.closeRequested?.emit()}onFocus(n){setTimeout(()=>{n.target?.select()},0)}onBlur(n){var e=1;setTimeout(()=>{this.canClose.emit(!0)},500)}isInputFocused(n){return document.activeElement===n}focusRegions(){this.leftPanel?.nativeElement?.querySelector('[tabindex="0"]')?.focus()}focusResorts(){this.rightPanel?.nativeElement?.querySelector('[tabindex="0"]')?.focus()}static \u0275fac=function(e){return new(e||t)(P(ut),P(Ft))};static \u0275cmp=B({type:t,selectors:[["restool-destination"]],viewQuery:function(e,i){if(e&1&&(ee(lk,5),ee(Lz,5),ee(Vz,5,Eo),ee(lk,5,Or),ee(Bz,5),ee(jz,5),ee(Hz,5)),e&2){let r;j(r=H())&&(i.destinationInput=r.first),j(r=H())&&(i.destSearch=r.first),j(r=H())&&(i.destinationAutoComplete=r.first),j(r=H())&&(i.destinationTrigger=r.first),j(r=H())&&(i.rightPanel=r.first),j(r=H())&&(i.leftPanel=r.first),j(r=H())&&(i.regionTree=r.first)}},inputs:{isModal:[1,"isModal"],dynamicPackageId:[1,"dynamicPackageId"],destination:[1,"destination"],destinationSelection:[1,"destinationSelection"],selectedRegion:[1,"selectedRegion"],resourceLabels:[1,"resourceLabels"],configuration:[1,"configuration"]},outputs:{isModal:"isModalChange",destination:"destinationChange",destinationSelection:"destinationSelectionChange",closeRequested:"closeRequested",refreshRequested:"refreshRequested",canClose:"canClose",selectedRegion:"selectedRegionChange",resourceLabels:"resourceLabelsChange",configuration:"configurationChange"},decls:12,vars:6,consts:[["leftPanel",""],["regionTree",""],["destinationInput","","destinationTrigger","matAutocompleteTrigger"],["autoDestination","matAutocomplete"],["rightPanel",""],["cdkTrapFocus","","cdkTrapFocusAutoCapture","","role","dialog","aria-modal","true"],["floatLabel","always",1,"destination-search"],[1,"destination-selection-panel"],[1,"destination-left-panel"],[1,"title"],[1,"contents",3,"dataSource","childrenAccessor"],["matTreeNodeToggle","",3,"cdkTreeNodeTypeaheadLabel","ngClass","keydown.arrowright","keydown.arrowleft","click","activation",4,"matTreeNodeDef","matTreeNodeDefWhen"],["matTreeNodePadding","",3,"keydown.arrowright","click","activation",4,"matTreeNodeDef"],[1,"destination-right-panel"],[1,"label"],["type","text","matInput","","matAutocompletePosition","below",3,"input","focus","placeholder","formControl","matAutocomplete"],["matAutocompleteDisabled","destinationInput.value.length<=0","hideSingleSelectionIndicator","",3,"opened","closed","optionSelected","displayWith"],[3,"value"],["aria-live","assertive",1,"no-results"],["icon","ams-search-outline"],["icon","ams-hotel"],["icon","ams-pin"],[1,"label",3,"innerHTML"],["matTreeNodeToggle","",3,"keydown.arrowright","keydown.arrowleft","click","activation","cdkTreeNodeTypeaheadLabel","ngClass"],[1,"toggle-icon"],["icon","chevron-up"],["icon","chevron-down"],["matTreeNodePadding","",3,"keydown.arrowright","click","activation"],["matIconButton","","disabled","",1,"toggle-icon"],["id","destination-right-panel-label",1,"title"],[1,"contents"],["aria-labelledby","destination-right-panel-label",3,"ngModel","multiple"],[1,"default-destination-info",3,"innerHTML"],["aria-labelledby","destination-right-panel-label",3,"ngModelChange","selectionChange","ngModel","multiple"],[3,"value","ngClass"],[3,"keydown.arrowleft","value","ngClass"],[1,"separator"],[1,"promo"]],template:function(e,i){e&1&&(_(0,"div",5),q(1,Yz,13,9,"mat-form-field",6),_(2,"div",7)(3,"div",8,0)(5,"h3",9),L(6),b(),_(7,"mat-tree",10,1),Fe(9,Zz,5,8,"mat-tree-node",11)(10,Xz,4,2,"mat-tree-node",12),b()(),q(11,i3,7,2,"div",13),b()()),e&2&&(p(),Y(i.configuration().ss?1:-1),p(5),ie(i.resourceLabels().DestDropdownLeftColHeadline),p(),C("dataSource",i.filteredNonLeafDestinations())("childrenAccessor",i.childrenAccessor),p(2),C("matTreeNodeDefWhen",i.hasChild),p(2),Y(i.isModal()?-1:11))},dependencies:[so,wi,df,js,Hs,Mc,uo,va,ri,Rr,Ma,il,Hf,vn,_o,Bf,Eo,jn,Or,nk,XM,JM,tk,ek,ZM,Xf,Ey,wy,un,bn,Ar,Jt],encapsulation:2})};function r3(t,n){}var To=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var Iy=(()=>{class t extends Zs{_elementRef=d(N);_focusTrapFactory=d(hf);_config;_interactivityChecker=d(Tv);_ngZone=d(F);_focusMonitor=d(Jn);_renderer=d(Pe);_changeDetectorRef=d(Ae);_injector=d(U);_platform=d(Ee);_document=d(me);_portalOutlet;_focusTrapped=new S;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(To,{optional:!0})||new To,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let i=this._ariaLabelledByQueue.indexOf(e);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),i}attachTemplatePortal(e){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),i}attachDomPortal=e=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,i){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let r=()=>{o(),a(),e.removeAttribute("tabindex")},o=this._renderer.listen(e,"blur",r),a=this._renderer.listen(e,"mousedown",r)})),e.focus(i)}_focusByCssSelector(e,i){let r=this._elementRef.nativeElement.querySelector(e);r&&this._forceFocus(r,i)}_trapFocus(e){this._isDestroyed||Dt(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,i=null;if(typeof e=="string"?i=this._document.querySelector(e):typeof e=="boolean"?i=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(i=e),this._config.restoreFocus&&i&&typeof i.focus=="function"){let r=Ln(),o=this._elementRef.nativeElement;(!r||r===this._document.body||r===o||o.contains(r))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,i=Ln();return e===i||e.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Ln()))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(i,r){if(i&1&&ee(vo,7),i&2){let o;j(o=H())&&(r._portalOutlet=o.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,r){i&2&&W("id",r._config.id||null)("role",r._config.role)("aria-modal",r._config.ariaModal)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null)},features:[ye],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,r){i&1&&Fe(0,r3,0,0,"ng-template",0)},dependencies:[vo],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} `],encapsulation:2})}return t})(),Yc=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!Je(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this._canClose(n)){let i=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(n),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}_canClose(n){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(n,e,this.componentInstance))}},o3=new D("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Ta(t)}}),a3=new D("DialogData"),s3=new D("DefaultDialogConfig");function l3(t){let n=Me(t),e=new R;return{valueSignal:n,get value(){return n()},change:e,ngOnDestroy(){e.complete()}}}var ck=(()=>{class t{_injector=d(U);_defaultOptions=d(s3,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(Pf);_idGenerator=d(Qe);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;_ariaHiddenElements=new Map;_scrollStrategy=d(o3);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=dr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(tt(void 0)));constructor(){}open(e,i){let r=this._defaultOptions||new To;i=V(V({},r),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let o=this._getOverlayConfig(i),a=ar(this._injector,o),s=new Yc(a,i),l=this._attachContainer(a,s,i);if(s.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(Ze(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(e,s,l,i),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){xy(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){xy(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),xy(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let i=new or({positionStrategy:e.positionStrategy||Sa().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(i.backdropClass=e.backdropClass),i}_attachContainer(e,i,r){let o=r.injector||r.viewContainerRef?.injector,a=[{provide:To,useValue:r},{provide:Yc,useValue:i},{provide:Js,useValue:e}],s;r.container?typeof r.container=="function"?s=r.container:(s=r.container.type,a.push(...r.container.providers(r))):s=Iy;let l=new ir(s,r.viewContainerRef,U.create({parent:o||this._injector,providers:a}));return e.attach(l).instance}_attachDialogContent(e,i,r,o){if(e instanceof Rt){let a=this._createInjector(o,i,r,void 0),s={$implicit:o.data,dialogRef:i};o.templateContext&&(s=V(V({},s),typeof o.templateContext=="function"?o.templateContext():o.templateContext)),r.attachTemplatePortal(new rr(e,null,s,a))}else{let a=this._createInjector(o,i,r,this._injector),s=r.attachComponentPortal(new ir(e,o.viewContainerRef,a));i.componentRef=s,i.componentInstance=s.instance}}_createInjector(e,i,r,o){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:a3,useValue:e.data},{provide:Yc,useValue:i}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(i,e,r)):s.push(...e.providers)),e.direction&&(!a||!a.get(et,null,{optional:!0}))&&s.push({provide:et,useValue:l3(e.direction)}),U.create({parent:a||o,providers:s})}_removeOpenDialog(e,i){let r=this.openDialogs.indexOf(e);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((o,a)=>{o?a.setAttribute("aria-hidden",o):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let i=e.parentElement.children;for(let r=i.length-1;r>-1;r--){let o=i[r];o!==e&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xy(t,n){let e=t.length;for(;e--;)n(t[e])}function c3(t,n){}var Qc=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},Ty="mdc-dialog--open",dk="mdc-dialog--opening",uk="mdc-dialog--closing",d3=150,u3=75,hk=(()=>{class t extends Iy{_animationStateChanged=new R;_animationsEnabled=!$e();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?fk(this._config.enterAnimationDuration)??d3:0;_exitAnimationDuration=this._animationsEnabled?fk(this._config.exitAnimationDuration)??u3:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(mk,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dk,Ty)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Ty),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Ty),this._animationsEnabled?(this._hostElement.style.setProperty(mk,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(uk)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(dk,uk)}_waitForAnimationToComplete(e,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let i=super.attachComponentPortal(e);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275cmp=B({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,r){i&2&&(Ot("id",r._config.id),W("aria-modal",r._config.ariaModal)("role",r._config.role)("aria-labelledby",r._config.ariaLabel?null:r._ariaLabelledByQueue[0])("aria-label",r._config.ariaLabel)("aria-describedby",r._config.ariaDescribedBy||null),K("_mat-animation-noopable",!r._animationsEnabled)("mat-mdc-dialog-container-with-actions",r._actionSectionCount>0))},features:[ye],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,r){i&1&&(_(0,"div",0)(1,"div",1),Fe(2,c3,0,0,"ng-template",2),b()())},dependencies:[vo],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} `],encapsulation:2})}return t})(),mk="--mat-dialog-transition-duration";function fk(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?Vn(t.substring(0,t.length-2)):t.endsWith("s")?Vn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var Kc=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(Kc||{}),So=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S;_beforeClosed=new S;_result;_closeFallbackTimeout;_state=Kc.OPEN;_closeInteractionType;constructor(n,e,i){this._ref=n,this._config=e,this._containerInstance=i,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(ze(r=>r.state==="opened"),Ze(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(ze(r=>r.state==="closed"),Ze(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),at(this.backdropClick(),this.keydownEvents().pipe(ze(r=>r.keyCode===27&&!this.disableClose&&!Je(r)))).subscribe(r=>{this.disableClose||(r.preventDefault(),Sy(this,r.type==="keydown"?"keyboard":"mouse"))})}close(n){let e=this._config.closePredicate;e&&!e(n,this._config,this.componentInstance)||(this._result=n,this._containerInstance._animationStateChanged.pipe(ze(i=>i.state==="closing"),Ze(1)).subscribe(i=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=Kc.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=Kc.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Sy(t,n,e){return t._closeInteractionType=n,t.close(e)}var ll=new D("MatMdcDialogData"),pk=new D("mat-mdc-dialog-default-options"),gk=new D("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(U);return()=>Ta(t)}}),Fr=(()=>{class t{_defaultOptions=d(pk,{optional:!0});_scrollStrategy=d(gk);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(Qe);_injector=d(U);_dialog=d(ck);_animationsDisabled=$e();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;dialogConfigClass=Qc;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=dr(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(tt(void 0)));constructor(){this._dialogRefConstructor=So,this._dialogContainerType=hk,this._dialogDataToken=ll}open(e,i){let r;i=V(V({},this._defaultOptions||new Qc),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let o=this._dialog.open(e,Ie(V({},i),{positionStrategy:Sa(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:To,useValue:i}]},templateContext:()=>({dialogRef:r}),providers:(a,s,l)=>(r=new this._dialogRefConstructor(a,i,l),r.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:r}])}));return r.componentRef=o.componentRef,r.componentInstance=o.componentInstance,this.openDialogs.push(r),this.afterOpened.next(r),r.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(r);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),r}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(i=>i.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let i=e.length;for(;i--;)e[i].close()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),My=(()=>{class t{dialogRef=d(So,{optional:!0});_elementRef=d(N);_dialog=d(Fr);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=_k(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let i=e._matDialogClose||e._matDialogCloseResult;i&&(this.dialogResult=i.currentValue)}_onButtonClick(e){Sy(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(i,r){i&1&&I("click",function(a){return r._onButtonClick(a)}),i&2&&W("aria-label",r.ariaLabel||null)("type",r.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Be]})}return t})(),m3=(()=>{class t{_dialogRef=d(So,{optional:!0});_elementRef=d(N);_dialog=d(Fr);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=_k(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t})}return t})();var ky=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=A({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Y_([jv])]})}return t})(),Zc=(()=>{class t extends m3{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(r){return(e||(e=it(t)))(r||t)}})();static \u0275dir=A({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,r){i&2&&K("mat-mdc-dialog-actions-align-start",r.align==="start")("mat-mdc-dialog-actions-align-center",r.align==="center")("mat-mdc-dialog-actions-align-end",r.align==="end")},inputs:{align:"align"},features:[ye]})}return t})();function _k(t,n){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?n.find(i=>i.id===e.id):null}var eh=class t{constructor(n){this.data=n}static \u0275fac=function(e){return new(e||t)(P(ll))};static \u0275cmp=B({type:t,selectors:[["dynamic-dialog"]],decls:5,vars:1,consts:[[3,"innerHTML"],["align","start"],["mat-button","","mat-dialog-close","","aria-label","close",1,"close-button"],["icon","close"]],template:function(e,i){e&1&&(_(0,"mat-dialog-content"),O(1,"div",0),b(),_(2,"mat-dialog-actions",1)(3,"button",2),O(4,"deal-icon",3),b()()),e&2&&(p(),C("innerHTML",i.data.htmlContent,eo))},dependencies:[Zc,Jt,ky,My,bn],encapsulation:2})};var th=class t{constructor(n,e){this.dialog=n;this.resourceLabelService=e;this.resourceLabels.set(e.getLabels())}bookingAddonsBlock=Vt.required();resourceLabels=oe(new Xt);openExtrasModal(){this.dialog.open(eh,{data:{htmlContent:this.bookingAddonsBlock()},hasBackdrop:!0,autoFocus:!0,restoreFocus:!0,panelClass:"add-extras-dialog",backdropClass:"add-extras-dialog-backdrop"})}static \u0275fac=function(e){return new(e||t)(P(Fr),P(Ft))};static \u0275cmp=B({type:t,selectors:[["restool-add-extras"]],inputs:{bookingAddonsBlock:[1,"bookingAddonsBlock"],resourceLabels:[1,"resourceLabels"]},outputs:{resourceLabels:"resourceLabelsChange"},decls:5,vars:2,consts:[[1,"tabs-AdditionalTabContent","activeAlreadyBookedPopup"],[1,"extras-label"],["mat-button","",1,"extras-cta",3,"click"]],template:function(e,i){e&1&&(_(0,"div",0)(1,"span",1),L(2),b(),_(3,"button",2),I("click",function(){return i.openExtrasModal()}),L(4),b()()),e&2&&(p(2),qe(" ",i.resourceLabels().AdditionalTabText," "),p(2),qe(" ",i.resourceLabels().AddExtrasTripButton," "))},dependencies:[vn,Bn],encapsulation:2})};var bk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,he]})}return t})();var f3=["input"],h3=["formField"],p3=["*"],Ry=class{source;value;constructor(n,e){this.source=n,this.value=e}};var g3=new D("MatRadioGroup"),_3=new D("mat-radio-default-options",{providedIn:"root",factory:b3});function b3(){return{color:"accent",disabledInteractive:!1}}var v3=(()=>{class t{_elementRef=d(N);_changeDetector=d(Ae);_focusMonitor=d(Jn);_radioDispatcher=d(Zv);_defaultOptions=d(_3,{optional:!0});_ngZone=d(F);_renderer=d(Pe);_uniqueId=d(Qe).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new R;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=$e();_injector=d(U);constructor(){d(Ke).load(ni);let e=d(g3,{optional:!0}),i=d(new Kn("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,i&&(this.tabIndex=sn(i,0))}focus(e,i){i?this._focusMonitor.focusVia(this._inputElement,i,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,i)=>{e!==this.id&&i===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Ry(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let i=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),i&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,i;if(!e||!e.selected||this.disabled?i=this.tabIndex:i=e.selected===this?this.tabIndex:-1,i!==this._previousTabIndex){let r=this._inputElement?.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i,Dt(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===r&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===r&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-radio-button"]],viewQuery:function(i,r){if(i&1&&(ee(f3,5),ee(h3,7,N)),i&2){let o;j(o=H())&&(r._inputElement=o.first),j(o=H())&&(r._rippleTrigger=o.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(i,r){i&1&&I("focus",function(){return r._inputElement.nativeElement.focus()}),i&2&&(W("id",r.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),K("mat-primary",r.color==="primary")("mat-accent",r.color==="accent")("mat-warn",r.color==="warn")("mat-mdc-radio-checked",r.checked)("mat-mdc-radio-disabled",r.disabled)("mat-mdc-radio-disabled-interactive",r.disabledInteractive)("_mat-animation-noopable",r._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",Q],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:sn(e)],checked:[2,"checked","checked",Q],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",Q],required:[2,"required","required",Q],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Q]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:p3,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(i,r){if(i&1){let o=ve();je(),_(0,"div",2,0)(2,"div",3)(3,"div",4),I("click",function(s){return M(o),k(r._onTouchTargetClick(s))}),b(),_(4,"input",5,1),I("change",function(s){return M(o),k(r._onInputInteraction(s))}),b(),_(6,"div",6),O(7,"div",7)(8,"div",8),b(),_(9,"div",9),O(10,"div",10),b()(),_(11,"label",11),fe(12),b()()}i&2&&(C("labelPosition",r.labelPosition),p(2),K("mdc-radio--disabled",r.disabled),p(2),C("id",r.inputId)("checked",r.checked)("disabled",r.disabled&&!r.disabledInteractive)("required",r.required),W("name",r.name)("value",r.value)("aria-label",r.ariaLabel)("aria-labelledby",r.ariaLabelledby)("aria-describedby",r.ariaDescribedby)("aria-disabled",r.disabled&&r.disabledInteractive?"true":null),p(5),C("matRippleTrigger",r._rippleTrigger.nativeElement)("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",!0),p(2),C("for",r.inputId))},dependencies:[Ks,IM],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)} `],encapsulation:2,changeDetection:0})}return t})(),vk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,tr,v3,he]})}return t})();var y3=["*"];var D3=new D("MAT_CARD_CONFIG"),yk=(()=>{class t{appearance;constructor(){let e=d(D3,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=B({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(i,r){i&2&&K("mat-mdc-card-outlined",r.appearance==="outlined")("mdc-card--outlined",r.appearance==="outlined")("mat-mdc-card-filled",r.appearance==="filled")("mdc-card--filled",r.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:y3,decls:1,vars:0,template:function(i,r){i&1&&(je(),fe(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end} `],encapsulation:2,changeDetection:0})}return t})();var Dk=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=G({type:t});static \u0275inj=$({imports:[he,he]})}return t})();var nh=class t{_calendar=d(Aa);_dateAdapter=d(_t);_dateFormats=d(Nr);_destroyed=new S;periodLabel=Me("");disablePreviousNavigation=oe();disableNextNavigation=oe();constructor(){this._calendar.stateChanges.pipe(tt(null),Se(this._destroyed)).subscribe(()=>{this.updateControls(),this.periodLabel.set(this._dateAdapter.format(this._calendar.activeDate,{year:"numeric",month:"long"}).toLocaleUpperCase())})}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}updateControls(){this.disableNextNavigation.set(this.getMonthDifference(this._calendar.activeDate,this._calendar.maxDate)==0),this.disablePreviousNavigation.set(this.getMonthDifference(this._calendar.activeDate,this._calendar.minDate)==0)}previousClicked(n){this._calendar.activeDate=n==="month"?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,-1)}nextClicked(n){this._calendar.activeDate=n==="month"?this._dateAdapter.addCalendarMonths(this._calendar.activeDate,1):this._dateAdapter.addCalendarYears(this._calendar.activeDate,1)}getMonthDifference(n,e){return n=n??new Date,e=e??new Date,e.getMonth()-n.getMonth()+12*(e.getFullYear()-n.getFullYear())}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=B({type:t,selectors:[["restool-dynamic-departures-calendar-header"]],inputs:{disablePreviousNavigation:[1,"disablePreviousNavigation"],disableNextNavigation:[1,"disableNextNavigation"]},outputs:{disablePreviousNavigation:"disablePreviousNavigationChange",disableNextNavigation:"disableNextNavigationChange"},decls:7,vars:3,consts:[[1,"restool-calendar-header"],["mat-button","",1,"restool-price-calendar-navigation","restool-price-calendar-navigation-previous",3,"click","disabled"],["icon","Slider-arrow"],[1,"header-label"],["mat-button","",1,"restool-price-calendar-navigation","restool-price-calendar-navigation-next",3,"click","disabled"]],template:function(e,i){e&1&&(_(0,"div",0)(1,"button",1),I("click",function(){return i.previousClicked("month")}),O(2,"deal-icon",2),b(),_(3,"span",3),L(4),b(),_(5,"button",4),I("click",function(){return i.nextClicked("month")}),O(6,"deal-icon",2),b()()),e&2&&(p(),C("disabled",i.disablePreviousNavigation()),p(3),ie(i.periodLabel()),p(),C("disabled",i.disableNextNavigation()))},dependencies:[vn,Bn,Jt],encapsulation:2,changeDetection:0})};var ih=class t extends ty{constructor(e,i,r){super(i.configuration.lang);this.configurationService=i;this.resourceLabelService=r}format(e,i){return new Intl.DateTimeFormat(this.configurationService.configuration.lang,i).format(e)}getMonthNames(e){return Array.from({length:12},(i,r)=>new Date(0,r).toLocaleString(this.configurationService.configuration.lang,{month:this.configurationService.configuration.mf}))}getDayOfWeekNames(e){let i=new Intl.DateTimeFormat(this.configurationService.configuration.lang,{weekday:this.configurationService.configuration.dowf}),r=new Date(1970,0,4);return Array.from({length:7},(o,a)=>{let s=new Date(r);return s.setDate(r.getDate()+a),i.format(s).substring(0,2)})}static \u0275fac=function(i){return new(i||t)(X(ka),X(ut),X(Ft))};static \u0275prov=w({token:t,factory:t.\u0275fac})};var cl=class t{constructor(n,e){this.httpClient=n;this.configuration=e;this.lazyObservable=this.subject.pipe(Li(this.lazyInterval),_e(i=>(this.lastLazyRun=i,this.httpClient.get(this.configuration.configuration?.ratesUrl+"?noOfDays="+this.configuration.configuration.rd+"&resortId="+i))),Dl()),this.lazyObservable.subscribe(i=>{this.lastLazyObject=i},i=>{})}lastRun;lastObject;lastLazyRun;lastLazyObject;subject=new S;lazyInterval=600;lazyObservable;getConfiguration(n,e,i){return new te(r=>{var o=this.configuration.configuration?.apiBaseUrl+"/configuration/"+n+"/"+e+((i?.length??0)>0?"/"+i:"");this.httpClient.get(o).subscribe(a=>{a?.os?.forEach(s=>s.t=s.t.includes("(")?s.t:s.t+" ("+s.c+")"),r.next(a),r.complete()},a=>{r.next(null),r.complete()})})}getRedirect(n){return new te(e=>{var i=this.configuration.configuration?.apiBaseUrl+"/resolve";this.httpClient.post(i,n).subscribe(r=>{e.next(r),e.complete()},r=>{e.complete()})})}getRates(n){return new te(e=>{if(!n)e.next(null),e.complete();else if(this.lastRun==n&&this.lastObject){e.next(this.lastObject),e.complete();return}else if(this.lastLazyRun==n&&this.lastLazyObject){this.lastRun=n,this.lastObject=Object.assign({},this.lastLazyObject),e.next(this.lastLazyObject),e.complete();return}else{var i=this.configuration.configuration?.ratesUrl+"?noOfDays="+this.configuration.configuration.rd+"&resortId="+n;this.httpClient.get(i).subscribe(r=>{this.lastRun=n,this.lastObject=r,e.next(r),e.complete()},r=>{e.next(null),e.complete()})}})}getLazyRates(n){!n||this.lastRun==n&&this.lastObject||this.lastLazyRun==n&&this.lastLazyObject||this.subject.next(n)}static \u0275fac=function(e){return new(e||t)(X(Ls),X(ut))};static \u0275prov=w({token:t,factory:t.\u0275fac,providedIn:"root"})};var wk=["calendarFirst"],Ek=["calendarSecond"],xk=()=>({month:"long"}),Ik=()=>({year:"numeric"});function w3(t,n){if(t&1&&(_(0,"div",17),L(1),b()),t&2){let e=y();p(),ie(e.resourceLabels().RatesDisplayedMessage)}}var rh=class t{constructor(n,e,i,r,o,a,s,l,c,u,m){this.injector=n;this.elementRef=e;this.renderer=i;this.datepipe=r;this.configurationService=o;this.resourceLabelService=a;this.dateAdapter=s;this.http=l;this.api=c;this.matLocale=u;this.platformId=m;this.resourceLabels.set(a.getLabels()),this.configuration.set(o.configuration??new Et)}dynamicPackageId=Vt.required();destination=Vt.required();startDate=oe(null);endDate=oe(null);internalStartDate=oe(null);internalEndDate=oe(null);closeRequested=Di();refreshRequested=Di();rates=oe(null);resourceLabels=oe(new Xt);configuration=oe(new Et);minDate=oe(new Date(new Date().setHours(0,0,0,0)));maxDate=oe(this.addMonths(new Date,36));rangeSelected=oe(null);activeDate=oe(null);secondActiveDate=oe(null);disablePreviousNavigation=ke(()=>this.getMonthDifference(this.minDate(),this.maxDate())==1||this.getMonthDifference(this.activeDate()??new Date,this.minDate())==0);disableNextNavigation=ke(()=>this.getMonthDifference(this.minDate(),this.maxDate())==1||this.getMonthDifference(this.activeDate()??new Date,this.maxDate())==1);calendarHeader=nh;firstCalendarComponent=Zi.required("calendarFirst");secondCalendarComponent=Zi.required("calendarSecond");firstCalendar=Zi("calendarFirst",{read:N});secondCalendar=Zi("calendarSecond",{read:N});focusActiveFirstSubscription;focusActiveSecondSubscription;keydownFirstSubscription;keydownSecondSubscription;ngOnInit(){if(this.internalStartDate.subscribe(e=>this.startDate.set(e)),this.internalEndDate.subscribe(e=>this.endDate.set(e)),this.rates.subscribe(e=>{this.syncCalendar()}),this.configuration().sr&&this.destination()?.hlr==!0&&this.dynamicPackageId()=="L"&&this.destination()?.c&&this.api.getRates(this.destination()?.c??"").subscribe(e=>{this.rates.set(e)}),this.activeDate.subscribe(e=>{if(this.firstCalendarComponent()&&(!this.firstCalendarComponent()?.activeDate||this.firstCalendarComponent().activeDate.getTime()!=e?.getTime())&&(this.firstCalendarComponent().activeDate=e??new Date,this.firstCalendarComponent()&&this.firstCalendarComponent().activeDate.getTime()!=e?.getTime()&&setTimeout(()=>{this.firstCalendarComponent().activeDate=e??new Date})),e){var i=new Date(e??0);i&&(i=new Date(i.getFullYear(),i.getMonth()+1,1)),this.secondActiveDate.set(i),this.secondCalendarComponent()&&(!this.secondCalendarComponent()?.activeDate||this.secondCalendarComponent().activeDate.getTime()!=this.secondActiveDate()?.getTime())&&setTimeout(()=>{this.secondCalendarComponent().activeDate=this.secondActiveDate()??new Date})}this.syncCalendar()}),this.rangeSelected.set(new dt(this.startDate(),this.endDate())),this.internalStartDate.set(this.rangeSelected()?.start??null),this.internalEndDate.set(this.rangeSelected()?.end??null),this.startDate()){var n=new Date((this.startDate()??new Date).getFullYear(),(this.startDate()??new Date).getMonth(),1);this.getMonthDifference(n,this.minDate())>=0&&(n=new Date(this.minDate().getFullYear(),this.minDate().getMonth(),1)),this.activeDate.set(n),setTimeout(()=>{this.firstCalendarComponent().activeDate=n})}else this.activeDate.set(new Date(this.minDate().getFullYear(),this.minDate().getMonth(),1))}nextClicked(n){let e=new Date(this.activeDate()??new Date),i=new Date(e.getFullYear(),e.getMonth()+1,1);this.activeDate.set(i)}previousClicked(n){let e=new Date(this.activeDate()??new Date),i=new Date(e.getFullYear(),e.getMonth()-1,1);this.activeDate.set(i)}selectionChanged(n){if(!this.internalStartDate()&&!this.internalEndDate())this.rangeSelected.set(new dt(n,null));else if(this.internalStartDate()&&this.internalEndDate())this.rangeSelected.set(new dt(n,null));else{let e=this.rangeSelected()?.start??new Date,i=n;i2&&(e=e.split(",")[0]+","+e.split(",")[1]);var i=new Date(e),r=i.setHours(0,0,0);return r}edgeWatcherListenerFirstStart;edgeWatcherListenerFirstEnd;edgeWatcherListenerSecondStart;edgeWatcherListenerSecondEnd;edgeWatcherFirst(n){(n.code=="ArrowLeft"||n.code=="ArrowUp")&&document.activeElement?.getAttribute("is-first")=="true"?(n.preventDefault(),n.stopPropagation()):(n.code=="ArrowRight"||n.code=="ArrowDown")&&document.activeElement?.getAttribute("is-last")=="true"&&(n.preventDefault(),n.stopPropagation(),this.activeDate()!=null&&this.activeDate()!=null&&this.activeDate.set(new Date(new Date(this.activeDate()??new Date)?.setDate(1))),this.secondCalendarComponent().focusActiveCell())}edgeWatcherSecond(n){if(n.code=="ArrowLeft"&&document.activeElement?.getAttribute("is-first")=="true"){if(n.preventDefault(),n.stopPropagation(),this.secondActiveDate()!=null&&this.secondActiveDate()!=null){var e=new Date(this.secondActiveDate()??new Date),i=e.setDate(e.getDate()-1);this.activeDate.set(new Date(i))}this.firstCalendarComponent().focusActiveCell()}else n.code=="ArrowRight"&&document.activeElement?.getAttribute("is-last")=="true"&&(n.preventDefault(),n.stopPropagation())}jumpWatcher(n,e){var i=n.currentTarget;if((n.code=="PageUp"||n.code=="PageDown")&&(n.preventDefault(),n.stopPropagation()),n.code=="ArrowUp"||n.code=="ArrowDown"){var r=this.getDateFromCalendarCell(i),o=new Date(r);if(this.getMonthDifference(o,this.addDays(o,n.code=="ArrowUp"?-7:7))!=0){if(n.code=="ArrowUp"){if(!e){var a=this.addDays(o,-7);this.activeDate.set(a),this.firstCalendarComponent().focusActiveCell()}}else if(n.code=="ArrowDown"&&e){var a=this.addDays(o,7);this.secondCalendarComponent().activeDate=a,this.secondCalendarComponent().focusActiveCell()}n.preventDefault(),n.stopPropagation()}}}focusTracker(n){var e=n.srcElement,i=this.getDateFromCalendarCell(e);this.updatePseudoSelection(this.firstCalendar()?.nativeElement,i),this.updatePseudoSelection(this.secondCalendar()?.nativeElement,i)}updatePseudoSelection(n,e){var i=n?.querySelectorAll(".mat-calendar .mat-calendar-body-cell:not(.mat-calendar-body-disabled)"),r=e==(this.rangeSelected()?.start?.getTime()??-1);i?.forEach(o=>{var a=this.getDateFromCalendarCell(o);!r&&(this.rangeSelected()?.start?.getTime()??-1)==a?o.classList.add("mat-calendar-body-preview-start"):o.classList.remove("mat-calendar-body-preview-start"),!r&&(this.rangeSelected()?.start?.getTime()??-1)<=a&&e>=a?o.classList.add("mat-calendar-body-in-preview"):o.classList.remove("mat-calendar-body-in-preview"),!r&&a==e?o.classList.add("mat-calendar-body-preview-end"):o.classList.remove("mat-calendar-body-preview-end")})}syncCalendar(){this.updateCalendar(this.firstCalendar()?.nativeElement,!0),this.updateCalendar(this.secondCalendar()?.nativeElement,!1)}updateCalendar(n,e){var i=[],r=[];e&&this.focusActiveFirstSubscription&&(this.focusActiveFirstSubscription.unsubscribe(),this.keydownFirstSubscription?.unsubscribe()),!e&&this.focusActiveSecondSubscription&&(this.focusActiveSecondSubscription.unsubscribe(),this.keydownSecondSubscription?.unsubscribe());var o=(e?this.activeDate()?.getFullYear():this.secondActiveDate()?.getFullYear())??2e3,a=(e?this.activeDate()?.getMonth():this.secondActiveDate()?.getMonth())??0,s=this;setTimeout(()=>{var l=n?.querySelectorAll(".mat-calendar .mat-calendar-body-cell:not(.mat-calendar-body-disabled)"),c=0;if(l?.forEach(h=>{r.push(Uo(h,"keydown"));var f=Number(h.querySelector(".mat-calendar-body-cell-content")?.childNodes[0].textContent?.trim()??"1"),g=new Date(o,a,f),v=g.setHours(0,0,0);h.setAttribute("data-raw-date",ln(v??"","yyyy-MM-dd","en-US"));var E=h.querySelector(".mat-calendar-body-cell-content");if(E){if(this.rates()){var T=this.rates()?.rs.find(Re=>this.normalizeDate(Re.d)?.getTime()==v),ne=T?(this.rates()?.c??"$")+T.r:"-";E.innerHTML=g.getDate()+""+ne+"",h.setAttribute("aria-label",this.dateAdapter.format(g,{date:"numeric",year:"numeric",month:"long"})+", "+ne),h.setAttribute("title",this.dateAdapter.format(g,{date:"numeric",year:"numeric",month:"long"})+". "+ne)}this.rangeSelected()?.start?.getTime()==v?(h.classList.add("mat-calendar-body-range-start"),E.classList.add("mat-calendar-body-selected")):this.rangeSelected()?.end?.getTime()==v?(h.classList.add("mat-calendar-body-range-end"),E.classList.add("mat-calendar-body-selected")):(h.classList.remove("mat-calendar-body-range-start"),h.classList.remove("mat-calendar-body-range-end"),E.classList.remove("mat-calendar-body-selected")),(this.rangeSelected()?.start?.getTime()??-1)<=v&&(this.rangeSelected()?.end?.getTime()??-1)>=v&&(this.rangeSelected()?.start?.getTime()??-1)!=(this.rangeSelected()?.end?.getTime()??-1)?h.classList.add("mat-calendar-body-in-range"):h.classList.remove("mat-calendar-body-in-range"),this.rangeSelected()?.start&&this.rangeSelected()?.end&&h.classList.remove("mat-calendar-body-preview-start","mat-calendar-body-in-preview","mat-calendar-body-preview-end"),this.rangeSelected()?.start&&!this.rangeSelected()?.end&&(this.rangeSelected()?.start?.getTime()??-1)<=v&&i.push(Uo(h,"focus"),Uo(h,"mouseenter"))}c++}),i?.length>0){var u=at(...i).subscribe(h=>{this.focusTracker(h)});e?this.focusActiveFirstSubscription=u:this.focusActiveSecondSubscription=u}if(r?.length>0){var u=at(...r).subscribe(f=>{this.jumpWatcher(f,e)});e?this.keydownFirstSubscription=u:this.keydownSecondSubscription=u}var m=n?.querySelectorAll(".mat-calendar .mat-calendar-body-cell");m&&m.length>0&&(m[0].setAttribute("is-first","true"),m[m.length-1].setAttribute("is-last","true"),e?(this.edgeWatcherListenerFirstStart&&this.edgeWatcherListenerFirstStart(),this.edgeWatcherListenerFirstEnd&&this.edgeWatcherListenerFirstEnd(),this.edgeWatcherListenerFirstStart=this.renderer.listen(m[0],"keydown",h=>{this.edgeWatcherFirst(h)}),this.edgeWatcherListenerFirstEnd=this.renderer.listen(m[m.length-1],"keydown",h=>{this.edgeWatcherFirst(h)})):(this.edgeWatcherListenerSecondStart&&this.edgeWatcherListenerSecondStart(),this.edgeWatcherListenerSecondEnd&&this.edgeWatcherListenerSecondEnd(),this.edgeWatcherListenerSecondStart=this.renderer.listen(m[0],"keydown",h=>{this.edgeWatcherSecond(h)}),this.edgeWatcherListenerSecondEnd=this.renderer.listen(m[m.length-1],"keydown",h=>{this.edgeWatcherSecond(h)})))},100)}requestRefresh(){this.refreshRequested?.emit()}requestClose(){this.closeRequested?.emit()}clearDates(){this.rangeSelected.set(new dt(null,null)),this.internalStartDate.set(null),this.internalEndDate.set(null)}applyDates(){this.internalStartDate()&&this.internalEndDate()||this.internalStartDate()==null&&this.internalEndDate()==null?(this.startDate.set(this.internalStartDate()),this.endDate.set(this.internalEndDate())):this.clearDates(),this.requestClose()}addMonths(n,e){let i=new Date(n);return i.setMonth(i.getMonth()+e),i}addDays(n,e){let i=new Date(n);return i.setDate(i.getDate()+e),i}getMonthDifference(n,e){return e.getMonth()-n.getMonth()+12*(e.getFullYear()-n.getFullYear())}normalizeDate(n){if(n==null)return;let e=new Date(n);return e.setHours(0,0,0,0),e}dateClass=n=>"no";static \u0275fac=function(e){return new(e||t)(P(U),P(N),P(Pe),P(Ir),P(ut),P(Ft),P(_t),P(Ls),P(cl),P(ka),P(qn))};static \u0275cmp=B({type:t,selectors:[["restool-dynamic-departures"]],viewQuery:function(e,i){e&1&&(vi(i.firstCalendarComponent,wk,5),vi(i.secondCalendarComponent,Ek,5),vi(i.firstCalendar,wk,5,N),vi(i.secondCalendar,Ek,5,N)),e&2&&As(4)},inputs:{dynamicPackageId:[1,"dynamicPackageId"],destination:[1,"destination"],startDate:[1,"startDate"],endDate:[1,"endDate"],internalStartDate:[1,"internalStartDate"],internalEndDate:[1,"internalEndDate"],rates:[1,"rates"],resourceLabels:[1,"resourceLabels"],configuration:[1,"configuration"],minDate:[1,"minDate"],maxDate:[1,"maxDate"],rangeSelected:[1,"rangeSelected"],activeDate:[1,"activeDate"],secondActiveDate:[1,"secondActiveDate"]},outputs:{startDate:"startDateChange",endDate:"endDateChange",internalStartDate:"internalStartDateChange",internalEndDate:"internalEndDateChange",closeRequested:"closeRequested",refreshRequested:"refreshRequested",rates:"ratesChange",resourceLabels:"resourceLabelsChange",configuration:"configurationChange",minDate:"minDateChange",maxDate:"maxDateChange",rangeSelected:"rangeSelectedChange",activeDate:"activeDateChange",secondActiveDate:"secondActiveDateChange"},features:[pe([Ir,{provide:_t,useClass:ih},{provide:Wf,useClass:jM}])],decls:27,vars:28,consts:[["calendarFirst",""],["calendarSecond",""],["role","dialog","cdkTrapFocus","","aria-modal","true","aria-label","resourceLabels().BookingDestinationAriaText",1,"dynamic-departures-wrapper",3,"cdkTrapFocusAutoCapture"],[1,"dynamic-departure-calendar"],[1,"dynamic-departure-calendar-header-wrapper"],["mat-icon-button","",1,"calendar-nav","calendar-nav-prev",3,"click","aria-label","disabled"],["icon","left"],[1,"calendar-header-labels"],[1,"month-label"],["mat-icon-button","",1,"calendar-nav","calendar-nav-next",3,"click","aria-label","disabled"],["icon","right"],[1,"dynamic-departure-calendar-group"],[1,"dynamic-departure-calendar-card","dynamic-departure-calendar-card-first"],["cdkFocusInitial","",3,"selectedChange","headerComponent","minDate","maxDate","selected"],[1,"dynamic-departure-calendar-card","dynamic-departure-calendar-card-second"],[3,"selectedChange","headerComponent","minDate","maxDate","selected"],[1,"dynamic-departure-calendar-footer-wrapper"],[1,"dynamic-departure-calendar-message"],["mat-stroked-button","",1,"dialog-clear-button",3,"click"],["mat-flat-button","",1,"dialog-close-button",3,"click"],[1,"label"]],template:function(e,i){if(e&1){let r=ve();_(0,"div",2)(1,"div",3)(2,"div",4)(3,"button",5),I("click",function(){return M(r),k(i.previousClicked("month"))}),O(4,"deal-icon",6),b(),_(5,"div",7)(6,"span",8),L(7),b(),_(8,"span",8),L(9),b()(),_(10,"button",9),I("click",function(){return M(r),k(i.nextClicked("month"))}),O(11,"deal-icon",10),b()(),_(12,"div",11)(13,"mat-card",12)(14,"mat-calendar",13,0),I("selectedChange",function(a){return M(r),k(i.selectionChanged(a))}),b()(),_(16,"mat-card",14)(17,"mat-calendar",15,1),I("selectedChange",function(a){return M(r),k(i.selectionChanged(a))}),b()()()(),_(19,"div",16),q(20,w3,2,1,"div",17),_(21,"mat-dialog-actions")(22,"button",18),I("click",function(){return M(r),k(i.clearDates())}),L(23),b(),_(24,"button",19),I("click",function(){return M(r),k(i.applyDates())}),_(25,"span",20),L(26),b()()()()()}e&2&&(C("cdkTrapFocusAutoCapture",!0),p(3),Ms("aria-label",pn(i.resourceLabels().AriaLabelPrevMonthButton)),C("disabled",i.disablePreviousNavigation()),p(4),ie(i.dateAdapter.format(i.firstCalendarComponent().activeDate,Rs(24,xk))+" "+i.dateAdapter.format(i.firstCalendarComponent().activeDate,Rs(25,Ik))),p(2),ie(i.dateAdapter.format(i.secondCalendarComponent().activeDate,Rs(26,xk))+" "+i.dateAdapter.format(i.secondCalendarComponent().activeDate,Rs(27,Ik))),p(),Ms("aria-label",pn(i.resourceLabels().AriaLabelNextMonthButton)),C("disabled",i.disableNextNavigation()),p(4),K("has-calendar-rates",i.rates()!=null),C("headerComponent",i.calendarHeader)("minDate",i.minDate())("maxDate",i.maxDate())("selected",i.rangeSelected()),p(3),K("has-calendar-rates",i.rates()!=null),C("headerComponent",i.calendarHeader)("minDate",i.minDate())("maxDate",i.maxDate())("selected",i.rangeSelected()),p(3),Y(i.rates()!=null?20:-1),p(3),ie(i.resourceLabels().ClearButtonText),p(3),ie(i.resourceLabels().DoneButtonText))},dependencies:[so,uo,bn,Ar,bk,vn,Bn,_o,vk,Xf,qf,Aa,Dk,yk,Zc,Jt],encapsulation:2})};var E3=["topMarker"],Tk=["originInput"],x3=["autoOrigin"],I3=t=>({stuck:t}),T3=t=>({single:t}),Oy=t=>({active:t}),S3=t=>({empty:t}),Ny=t=>({"modal-view":t});function M3(t,n){if(t&1&&(nc(0),_(1,"div",48),O(2,"img",49),b(),ic()),t&2){let e,i=y(2);p(2),C("src",(e=i.configuration())==null?null:e.liu,p_),W("alt",i.resourceLabels().LoaderAriaText)}}function k3(t,n){if(t&1&&O(0,"div",51),t&2){let e=y(3);C("innerHTML",e.fallbackLoaderHtml,eo)}}function A3(t,n){if(t&1&&Fe(0,k3,1,1,"div",50),t&2){let e=y(2);C("ngIf",e.showFallbackLoader)}}function R3(t,n){if(t&1&&(_(0,"div",46),Fe(1,M3,3,2,"ng-container",47)(2,A3,1,1,"ng-template",null,5,Cr),b()),t&2){let e,i=He(3),r=y();p(),C("ngIf",(e=r.configuration())==null?null:e.liu)("ngIfElse",i)}}function O3(t,n){if(t&1&&(_(0,"mat-button-toggle",14)(1,"span",21),L(2),b()()),t&2){let e=y();C("value","L"),p(2),ie(e.resourceLabels().RoomOnlyTabText)}}function N3(t,n){if(t&1&&(_(0,"mat-button-toggle",14)(1,"span",21),L(2),b()()),t&2){let e=y();C("value","P"),p(2),ie(e.resourceLabels().PackageTabText)}}function F3(t,n){if(t&1&&O(0,"restool-add-extras",15),t&2){let e=y();C("bookingAddonsBlock",e.bookingAddonsBlock()??"")}}function P3(t,n){if(t&1&&(_(0,"mat-error"),L(1),b()),t&2){let e=y(2);p(),qe(" ",e.resourceLabels().BookingOriginError," ")}}function L3(t,n){if(t&1&&(_(0,"mat-option",14),L(1),b()),t&2){let e=n.$implicit;C("value",e),p(),ie(e.t)}}function V3(t,n){if(t&1&&(_(0,"div",56),L(1),b()),t&2){let e=y(2);p(),qe(" ",e.resourceLabels().OriginNoResultsfound," ")}}function B3(t,n){if(t&1){let e=ve();_(0,"div",17)(1,"mat-form-field",52),O(2,"deal-icon",53),_(3,"mat-label",21),L(4),b(),_(5,"input",54,6),I("input",function(){M(e);let r=y();return k(r.filterViewOrigins())})("focus",function(r){M(e);let o=y();return o.filterViewOrigins(),k(o.onFocus(r))}),b(),q(8,P3,2,1,"mat-error"),_(9,"mat-autocomplete",55,7),on(11,L3,2,2,"mat-option",14,bi),b(),q(13,V3,2,1,"div",56),b()()}if(t&2){let e=He(6),i=He(10),r=y();p(4),ie(r.resourceLabels().OriginDropdownText),p(),C("placeholder",pn(r.resourceLabels().OriginPlaceholder))("formControl",r.originControl)("matAutocomplete",i),W("data-length",r.filteredOrigins.length),p(3),Y(r.originControl.invalid&&r.originControl.touched?8:-1),p(),C("displayWith",r.displayOrigin),p(2),an(r.filteredOrigins),p(2),Y(((e==null||e.value==null?null:e.value.length)??0)>0&&r.filteredOrigins.length==0&&r.isInputFocused(e)?13:-1)}}function j3(t,n){if(t&1&&(_(0,"mat-error"),L(1),b()),t&2){let e=y();p(),qe(" ",e.resourceLabels().BookingDestinationError," ")}}function H3(t,n){if(t&1){let e=ve();_(0,"restool-destination",58),Kt("destinationChange",function(r){M(e);let o=y(2);return Lt(o.destination,r)||(o.destination=r),k(r)}),I("refreshRequested",function(){M(e);let r=y(2);return k(r.refresh())})("closeRequested",function(){M(e);let r=y(2);return k(r.closeDestinations())})("canClose",function(r){M(e);let o=y(2);return k(o.canCloseDestinations=r)}),b()}if(t&2){let e=y(2);C("isModal",e.isModal()),Yt("destination",e.destination),C("dynamicPackageId",e.dynamicPackageId())("ngClass",gn(4,Ny,e.isModal()))}}function z3(t,n){if(t&1){let e=ve();Fe(0,H3,1,6,"ng-template",57),I("detach",function(){M(e);let r=y();return k(r.showDestinationsDialog=!1)})("overlayOutsideClick",function(){M(e);let r=y();return k(r.closeDestinations())})}if(t&2){let e=y(),i=He(16);C("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.showDestinationsDialog)("cdkConnectedOverlayHasBackdrop",!0)("cdkConnectedOverlayPositions",e.overlayPositions)}}function U3(t,n){if(t&1&&(_(0,"mat-error"),L(1),b()),t&2){let e=y();p(),qe(" ",e.resourceLabels().TravelDatesError," ")}}function $3(t,n){if(t&1){let e=ve();_(0,"restool-dynamic-departures",60),Kt("startDateChange",function(r){M(e);let o=y(2);return Lt(o.departureDate,r)||(o.departureDate=r),k(r)})("endDateChange",function(r){M(e);let o=y(2);return Lt(o.returnDate,r)||(o.returnDate=r),k(r)}),I("closeRequested",function(){M(e);let r=y(2);return k(r.closeDynamicDates())})("refreshRequested",function(){M(e);let r=y(2);return k(r.refreshDynamicDates())}),b()}if(t&2){let e=y(2);C("dynamicPackageId",e.dynamicPackageId())("destination",e.selectedDestination()),Yt("startDate",e.departureDate)("endDate",e.returnDate),C("ngClass",gn(5,Ny,e.isModal()))}}function G3(t,n){if(t&1){let e=ve();Fe(0,$3,1,7,"ng-template",59),I("backdropClick",function(){M(e);let r=y();return k(r.closeDynamicDates())})("overlayOutsideClick",function(){M(e);let r=y();return k(r.closeDynamicDates())})}if(t&2){let e=y(),i=He(27);C("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.showDynamicDatesDialog)("cdkConnectedOverlayHasBackdrop",!0)("cdkConnectedOverlayPositions",e.overlayPositions)}}function W3(t,n){if(t&1&&(_(0,"div",34)(1,"span",61),L(2),b(),_(3,"span",62),L(4),b()()),t&2){let e=y();p(2),ie(e.resourceLabels().RoomsText),p(2),ie(e.resourceLabels().GuestsText)}}function q3(t,n){if(t&1){let e=ve();_(0,"restool-travellers-dialog",63),Kt("roomDetailsChange",function(r){M(e);let o=y(2);return Lt(o.roomDetails,r)||(o.roomDetails=r),k(r)})("roomsChange",function(r){M(e);let o=y(2);return Lt(o.rooms,r)||(o.rooms=r),k(r)}),I("refreshRequested",function(){M(e);let r=y(2);return k(r.refresh())})("closeRequested",function(){M(e);let r=y(2);return k(r.closeTravellers())})("canClose",function(r){M(e);let o=y(2);return k(o.canCloseTravellers=r)}),b()}if(t&2){let e=y(2);C("dynamicPackageId",e.dynamicPackageId())("selectedDestination",e.selectedDestination()),Yt("roomDetails",e.roomDetails)("rooms",e.rooms),C("ngClass",gn(5,Ny,e.isModal()))}}function Y3(t,n){if(t&1){let e=ve();Fe(0,q3,1,7,"ng-template",57),I("detach",function(){M(e);let r=y();return k(r.showTravellerDialog=!1)})("overlayOutsideClick",function(){M(e);let r=y();return k(r.closeTravellers())})}if(t&2){let e=y(),i=He(39);C("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",e.showTravellerDialog)("cdkConnectedOverlayHasBackdrop",!0)("cdkConnectedOverlayPositions",e.overlayPositions)}}function K3(t,n){if(t&1&&(_(0,"mat-error"),L(1),b()),t&2){let e=y(2);p(),qe(" ",e.resourceLabels().BookingPromoCodeError," ")}}function Q3(t,n){if(t&1&&(_(0,"div",42)(1,"mat-form-field",64)(2,"mat-label",21),L(3),b(),O(4,"input",65),q(5,K3,2,1,"mat-error"),b()()),t&2){let e=y();p(3),ie(e.resourceLabels().PromoCodeText),p(),C("pattern",pn(e.promoRegex))("placeholder",pn(e.resourceLabels().PromoCodeText))("formControl",e.promoControl),p(),Y(e.promoControl.invalid?5:-1)}}function Z3(t,n){if(t&1){let e=ve();_(0,"div",43)(1,"div",66),O(2,"deal-icon",67),b(),_(3,"div")(4,"label",68)(5,"input",69),Kt("ngModelChange",function(r){M(e);let o=y();return Lt(o.usePoints,r)||(o.usePoints=r),k(r)}),b(),_(6,"span"),L(7),b()()()()}if(t&2){let e=y();p(5),Yt("ngModel",e.usePoints),p(2),ie(e.resourceLabels().BookWithPointsLabel)}}var oh=class t{constructor(n,e,i,r,o,a,s){this.dialog=n;this.datepipe=e;this.platformId=i;this.configurationService=r;this.resourceLabelService=o;this.apiService=a;this.sanitizer=s;this.resourceLabels.set(o.getLabels()),this.configuration.set(r.configuration??new Et),this.isBrowser=Fm(i)}_fallbackHtml;showFallbackLoader=!1;get fallbackLoaderHtml(){return this._fallbackHtml||(this._fallbackHtml=this.sanitizer.bypassSecurityTrustHtml('
'+this.resourceLabels().LoaderAriaText+'
'+'
'.repeat(4)+'
')),this._fallbackHtml}bookingAddonsBlock=Vt(null);bookingResortMessage=Vt(null);dynamicPackageId=oe("L");origin=oe("");destination=oe("");promoCode=oe("");usePoints=oe(!1);isModal=oe(!1);rooms=oe(1);adults=oe(2);children=oe(0);ages=oe([]);roomDetails=oe([]);departureDate=oe(null);returnDate=oe(null);isSticky=oe(!1);origins=ke(()=>this.configuration().os??[]);destinations=ke(()=>{var n=this.configurationRefreshFlag();return this.configuration().ds??[]});selectedDestination=ke(()=>{var n=this.refreshFlag();return this.destinations().find(e=>e.c==this.destination())?this.destinations().find(e=>e.c==this.destination())??null:this.destinations().flatMap(e=>e.d??[]).find(e=>e.c==this.destination())?this.destinations().flatMap(e=>e.d??[]).find(e=>e.c==this.destination())??null:this.destinations().flatMap(e=>(e.d??[]).flatMap(i=>i.d??[])).find(e=>e.c==this.destination())?this.destinations().flatMap(e=>(e.d??[]).flatMap(i=>i.d??[])).find(e=>e.c==this.destination())??null:null});initialized=Me(!0);resourceLabels=oe.required();configuration=oe.required();isSubmitting=Me(!1);resources=Vt(new Xt,{transform:n=>typeof n=="string"?JSON.parse(n??""):n});cfg=Vt(new Et,{transform:n=>typeof n=="string"?JSON.parse(n??""):n});filteredOrigins=[];originControl=new Mr(null);destinationControl=new Mr(null,Xn.required);promoControl=new Mr(null);travelDateControl=new Mr(null);travellers=ke(()=>{var n=this.refreshFlag();return this.computedAdults()+this.computedChildren()});computedAdults=ke(()=>{var n=this.refreshFlag();return this.roomDetails().reduce(function(e,i){return e+i.adults},0)});computedChildren=ke(()=>{var n=this.refreshFlag();return this.roomDetails().reduce(function(e,i){return e+i.children},0)});hotelOffered=ke(()=>this.destinations().length<=0?!0:(this.destinations().flatMap(n=>(n.d?.flatMap(e=>(e.d?.flatMap(i=>i.pt)??[]).concat(e.pt))??[]).concat(n.pt))??[])?.includes("L"));airOffered=ke(()=>{var n=(typeof structuredClone=="function"?structuredClone(this.destinations()):JSON.parse(JSON.stringify(this.destinations())))??[],e=n.flatMap(i=>(i.d?.flatMap(r=>(r.d?.filter(o=>o.il!=!0)??[]).concat(r.il!=!0?r:[]))??[]).concat(i.il!=!0?i:[]))??[];return e.filter(i=>i.pt?.includes("P")).length>0});hasPopup=ke(()=>(this.bookingAddonsBlock()?.length??0)>0);refreshFlag=oe(0);configurationRefreshFlag=oe(0);topMarker;originInput;originAutoComplete;originTrigger;isBrowser=!1;showTravellerDialog=!1;showDynamicDatesDialog=!1;showDestinationsDialog=!1;canCloseDestinations=!0;canCloseDynamicDates=!0;canCloseTravellers=!0;promoRegex="^[a-zA-Z0-9 -]*$";overlayPositions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:1},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:1}];ngOnInit(){typeof this.adults()=="string"&&this.adults.set(parseInt(this.adults().toString())),typeof this.children()=="string"&&this.children.set(parseInt(this.children().toString())),typeof this.departureDate()=="string"&&this.departureDate.set(new Date(parseInt(this.departureDate()?.toString()?.split("-")[0]??""),parseInt(this.departureDate()?.toString()?.split("-")[1]??"")-1,parseInt(this.departureDate()?.toString()?.split("-")[2]??""))),typeof this.returnDate()=="string"&&this.returnDate.set(new Date(parseInt(this.returnDate()?.toString()?.split("-")[0]??""),parseInt(this.returnDate()?.toString()?.split("-")[1]??"")-1,parseInt(this.returnDate()?.toString()?.split("-")[2]??""))),this.dynamicPackageId.subscribe(n=>{this.selectedDestination()?.pt?.includes(n)||this.destination.set(""),n=="P"?(this.travelDateControl.addValidators([Xn.required]),this.originControl.markAsUntouched()):(this.travelDateControl.removeValidators([Xn.required]),this.travelDateControl.updateValueAndValidity())}),this.destination.subscribe(n=>{this.destinationControl.setValue(n),this.resetTravellers(!0)}),this.originControl.valueChanges.subscribe(n=>{this.origin.set(typeof n=="string"?n:n?.c??"")}),this.promoControl.valueChanges.subscribe(n=>{this.promoCode.set(n??"")}),this.departureDate.subscribe(n=>{!n&&!this.returnDate()?this.travelDateControl.setValue(null):this.travelDateControl.setValue((n?ln(n,this.resourceLabels().DateFormat,"en-US"):"")+" - "+(this.returnDate()?ln(this.returnDate()??"",this.resourceLabels().DateFormat,"en-US"):""))}),this.returnDate.subscribe(n=>{!n&&!this.departureDate()?this.travelDateControl.setValue(null):this.travelDateControl.setValue((this.departureDate()?ln(this.departureDate()??"",this.resourceLabels().DateFormat,"en-US"):"")+" - "+(n?ln(n,this.resourceLabels().DateFormat,"en-US"):""))}),this.resourceLabelService.initialize(this.resources(),this.bookingResortMessage()),this.configurationService.initialize(this.cfg()),this.destinationControl.setValue(this.destination()),this.promoControl.setValue(this.promoCode()),this.isSubmitting.set(!1),this.initializationComplete()}initializationComplete(){if(this.resourceLabels.set(this.resourceLabelService.getLabels()),this.configuration.set(this.configurationService.configuration??new Et),this.configurationService.configuration=this.configuration(),this.apiService.getConfiguration(this.configuration().loc,this.configuration().lang,this.configuration().b?.join("_")??void 0).subscribe({next:i=>{this.configuration.set(Object.assign(this.configuration(),i)),this.configurationRefreshFlag.set((this.configurationRefreshFlag()+1)%2)},error:()=>{console.error("Failed to load configuration")}}),this.ages().length{let i=new Io;return i.value=1,i}),this.roomDetails.set([e]),this.initialized.set(!0)}ngOnChanges(){(this.departureDate()||this.returnDate())&&this.travelDateControl.setValue((this.departureDate()?ln(this.departureDate()??"",this.resourceLabels().DateFormat,"en-US"):"")+" - "+(this.returnDate()?ln(this.returnDate()??"",this.resourceLabels().DateFormat,"en-US"):"")),this.isModal()&&this.destination()!=this.destinationControl.value&&this.destinationControl.setValue(this.destination())}ngAfterViewInit(){this.isBrowser&&this.onScroll()}setSelectedOrigin(){var n=this.origins()?.findIndex(e=>e.c==this.origin());n>=0&&this.originControl.setValue(this.origins()[n])}displayOrigin(n){return n?(this.origin?.set(n.c??""),`${n.t}`):""}filterViewOrigins(){let n=this.originInput.nativeElement.value.toLowerCase();if(n.length<=0&&(this.configuration().fc??0)>0){this.filteredOrigins=[];return}var e=(this.origins()??[]).filter(i=>i.t.toLowerCase().includes(n));this.configuration().bo&&(e=e.sort((i,r)=>(i.c.toLowerCase()==n?-1e3:i.t.indexOf(n))-(r.c.toLowerCase()==n?-1e3:r.t.indexOf(n)))),(this.configuration().fc??0)>0&&(e=e.slice(0,this.configuration().fc??5)),this.filteredOrigins=e}onFocus(n){setTimeout(()=>{n.target?.select()},0)}refresh(){this.refreshFlag.set((this.refreshFlag()+1)%2)}closeTravellers(){this.canCloseTravellers&&(this.showTravellerDialog=!1)}closeDestinations(){this.canCloseDestinations&&(this.showDestinationsDialog=!1,this.destination()&&this.configuration().sr&&this.apiService.getLazyRates(this.destination()))}resetTravellers(n=!1){let i=this.selectedDestination()?.ac??this.configuration().ac,r=0;if(n)this.rooms()>(this.selectedDestination()?.mr??this.configuration().mr)&&(this.rooms.set(this.selectedDestination()?.mr??this.configuration().mr),this.roomDetails.set(this.roomDetails().slice(0,this.rooms()))),this.roomDetails().forEach(o=>{o.adults>(this.selectedDestination()?.ma??this.configuration().ma)&&(o.adults=this.selectedDestination()?.ma??this.configuration().ma),o.children>(this.selectedDestination()?.mc??this.configuration().mc)&&(o.children=this.selectedDestination()?.mc??this.configuration().mc,o.ages=o.ages.slice(0,o.children)),(o.adults+o.children>(this.selectedDestination()?.mgpr??this.configuration().mgpr)||!i)&&(o.children=0,o.ages=[]),o.ages?.forEach(a=>{a.value>(this.selectedDestination()?.mca??this.configuration().mca)&&(a.value=this.selectedDestination()?.mgpr??this.configuration().mgpr)})});else{let o=new Ra;o.adults=2,o.children=r,o.ages=Array.from({length:r},()=>{let a=new Io;return a.value=1,a}),this.roomDetails.set([o]),this.rooms.set(1)}this.refresh()}refreshDynamicDates(){this.refreshFlag.set((this.refreshFlag()+1)%2)}closeDynamicDates(){this.canCloseDynamicDates&&(this.showDynamicDatesDialog=!1,this.refreshDynamicDates())}hijackKeyboard(n){return n.target.tagName.toLowerCase()==="button"}isInputFocused(n){return document.activeElement===n}closeAutoCompletes(){this.originTrigger?.closePanel()}onScroll(){let e=this.topMarker.nativeElement.getBoundingClientRect().top>=0;this.isSticky.set(!e)}submit(){if(this.originControl.markAllAsTouched(),this.originControl.markAsDirty(),this.destinationControl.markAsDirty(),this.promoControl.markAsDirty(),this.travelDateControl.markAsDirty(),this.originControl.updateValueAndValidity(),this.destinationControl.updateValueAndValidity(),this.promoControl.updateValueAndValidity(),this.travelDateControl.updateValueAndValidity(),this.isSubmitting.set(!0),this.showFallbackLoader=!this.configuration()?.liu,this.originControl.invalid||this.destinationControl.invalid||this.promoControl.invalid||this.travelDateControl.invalid){this.isSubmitting.set(!1),this.showFallbackLoader=!1;return}var n=this.selectedDestination()?.il==!0;(window.dataLayer=window?.dataLayer||[]).push({event:"checkAvailability",checkAvailability:{tripType:this.dynamicPackageId()=="L"?"land":"package",Brand:this.configuration()?.b&&this.configuration().b.length>0?this.configuration().b.length>1&&!n?this.configuration().bs.find(e=>this.selectedDestination()?.b):this.configuration().bs.find(e=>this.configuration().b[0]):"Hyatt Inclusive Collection",Resort:n?null:this.selectedDestination()?.t,Destination:n?this.selectedDestination()?.t:null,checkInDate:this.departureDate()?ln(this.departureDate()??"","yyyy/MM/dd","en-US"):null,checkOutDate:this.returnDate()?ln(this.returnDate()??"","yyyy/MM/dd","en-US"):null,totalNights:this.getDayDifference(this.returnDate()??new Date,this.departureDate()??new Date),numberAdults:this.computedAdults(),numberChildren:this.computedChildren(),numberRooms:this.rooms(),PromoCode:this.promoCode(),widget:"Angular",book_with_points:this.usePoints()}}),this.apiService.getRedirect({brandId:this.configuration()?.b&&this.configuration().b.length>0?n?this.configuration().b[0]:this.selectedDestination()?.b:"",language:this.configuration()?.lang,location:this.configuration()?.loc,dynamicPackageId:this.dynamicPackageId(),origin:this.origin()??null,destination:this.destination(),departureDate:this.departureDate()?ln(this.departureDate()??"",this.resourceLabels().DateFormat,"en-US"):null,returnDate:this.returnDate()?ln(this.returnDate()??"",this.resourceLabels().DateFormat,"en-US"):null,promoCode:this.promoCode(),usePoints:this.usePoints(),occupancy:JSON.stringify(this.roomDetails().map(e=>({Adults:e.adults?.toString()??null,Children:e.children?.toString()??null,Ages:e.ages?.map(i=>i.value)?.join(";")??"",NumberOfAges:(e.ages?.length??0).toString()})))}).subscribe({next:e=>{let i=document.createElement("form");i.method=e.method,i.action=window?.GTMDecorateUrl?window.GTMDecorateUrl(e.url):e.url;let r=JSON.parse(e.body);for(let o in r)if(r.hasOwnProperty(o)){let a=document.createElement("input");a.type="hidden",a.name=o,a.value=r[o],i.appendChild(a)}document.body.appendChild(i),i.submit(),this.isSubmitting=Me(!0),document.body.removeChild(i)},complete:()=>this.isSubmitting.set(!1)})}getDayDifference(n,e){return Math.abs(Math.floor((e.getTime()-n.getTime())/1e3/60/60/24))}groupBy(n,e){let i=new Map;return n.forEach(r=>{let o=e(r),a=i.get(o);a?a.push(r):i.set(o,[r])}),i}maxDaysInRange(){return n=>n.value.start&&n.value.end?{maxDaysInRange:!0}:null}static \u0275fac=function(e){return new(e||t)(P(Fr),P(Ir),P(qn),P(ut),P(Ft),P(cl),P(iv))};static \u0275cmp=B({type:t,selectors:[["restool-content"]],viewQuery:function(e,i){if(e&1&&(ee(E3,5),ee(Tk,5),ee(x3,5,Eo),ee(Tk,5,Or)),e&2){let r;j(r=H())&&(i.topMarker=r.first),j(r=H())&&(i.originInput=r.first),j(r=H())&&(i.originAutoComplete=r.first),j(r=H())&&(i.originTrigger=r.first)}},hostBindings:function(e,i){e&1&&I("scroll",function(){return i.onScroll()},g_)},inputs:{bookingAddonsBlock:[1,"bookingAddonsBlock"],bookingResortMessage:[1,"bookingResortMessage"],dynamicPackageId:[1,"dynamicPackageId"],origin:[1,"origin"],destination:[1,"destination"],promoCode:[1,"promoCode"],usePoints:[1,"usePoints"],isModal:[1,"isModal"],rooms:[1,"rooms"],adults:[1,"adults"],children:[1,"children"],ages:[1,"ages"],roomDetails:[1,"roomDetails"],departureDate:[1,"departureDate"],returnDate:[1,"returnDate"],isSticky:[1,"isSticky"],resourceLabels:[1,"resourceLabels"],configuration:[1,"configuration"],resources:[1,"resources"],cfg:[1,"cfg"],refreshFlag:[1,"refreshFlag"],configurationRefreshFlag:[1,"configurationRefreshFlag"]},outputs:{dynamicPackageId:"dynamicPackageIdChange",origin:"originChange",destination:"destinationChange",promoCode:"promoCodeChange",usePoints:"usePointsChange",isModal:"isModalChange",rooms:"roomsChange",adults:"adultsChange",children:"childrenChange",ages:"agesChange",roomDetails:"roomDetailsChange",departureDate:"departureDateChange",returnDate:"returnDateChange",isSticky:"isStickyChange",resourceLabels:"resourceLabelsChange",configuration:"configurationChange",refreshFlag:"refreshFlagChange",configurationRefreshFlag:"configurationRefreshFlagChange"},features:[pe([TM(),Ir]),Be],decls:59,vars:48,consts:[["topMarker",""],["destinationTrigger","cdkOverlayOrigin"],["dateTrigger","cdkOverlayOrigin"],["dateOpenBtn",""],["travellerTrigger","cdkOverlayOrigin"],["fallbackLoader",""],["originInput","","originTrigger","matAutocompleteTrigger"],["autoOrigin","matAutocomplete"],[1,"restool-content-wrapper",3,"ngClass"],["aria-busy","true","class","img-loader",4,"ngIf"],["id","restool-content-compact-header"],[1,"restool-content-links"],[1,"restool-filters-layout",3,"ngClass"],["name","deal-type","aria-label","Deal Type","hideSingleSelectionIndicator","",3,"ngModelChange","ngModel"],[3,"value"],[1,"extras-banner-wrapper",3,"bookingAddonsBlock"],["method","get",1,"restool-content-fields",3,"ngSubmit","keydown.enter"],[1,"restool-content-fields-origin"],[1,"restool-content-fields-destination"],["floatLabel","always","cdkOverlayOrigin","",1,"restool-content-fields-destination-field",3,"ngClass"],["icon","globe"],[1,"label"],["matInput","","type","text","required","",3,"hidden","formControl"],["type","button",1,"destination-selector",3,"click"],["cdkConnectedOverlay","","cdkConnectedOverlayPush","true",3,"cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions"],[1,"restool-content-fields-travel-dates"],["floatLabel","always","cdkOverlayOrigin","",1,"restool-content-fields-travel-dates-field",3,"ngClass"],["icon","calendar"],["aria-haspopup","dialog","type","button",3,"click","title","ngClass"],["type","text","matInput","",3,"placeholder","hidden","formControl"],[1,"restool-content-fields-travellers"],["cdkOverlayOrigin","",1,"restool-content-fields-travellers-field",3,"ngClass"],["type","button","mat-button","",1,"restool-content-fields-travellers-button",3,"click"],[1,"traveller-button-wrapper"],[1,"restool-traveller-labels"],[1,"traveller-summary-grid"],[1,"summary-block"],["icon","bed"],[1,"roomCount"],["icon","users"],[1,"guestCount"],["icon","chevron-down"],[1,"restool-content-fields-promocode"],[1,"restool-content-fields-points"],[1,"restool-content-action","buttonWrapper"],["type","submit",1,"restool-content-action-submit","block-buttontext","primary"],["aria-busy","true",1,"img-loader"],[4,"ngIf","ngIfElse"],["role","alert","aria-live","assertive",1,"restool-interstitial"],[1,"restool-loader",3,"src"],["class","dynamic-loader",3,"innerHTML",4,"ngIf"],[1,"dynamic-loader",3,"innerHTML"],["floatLabel","always",1,"restool-content-fields-origin-field"],["icon","plane"],["type","text","required","","matInput","","matAutocompletePosition","below",3,"input","focus","placeholder","formControl","matAutocomplete"],["requireSelection","","autoActiveFirstOption","",3,"displayWith"],["aria-live","assertive",1,"no-results"],["cdkConnectedOverlay","","cdkConnectedOverlayPush","true",3,"detach","overlayOutsideClick","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions"],[3,"destinationChange","refreshRequested","closeRequested","canClose","isModal","destination","dynamicPackageId","ngClass"],["cdkConnectedOverlay","","cdkConnectedOverlayPush","true",3,"backdropClick","overlayOutsideClick","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayPositions"],[3,"startDateChange","endDateChange","closeRequested","refreshRequested","dynamicPackageId","destination","startDate","endDate","ngClass"],[1,"roomsLabel"],[1,"guestsLabel"],[3,"roomDetailsChange","roomsChange","refreshRequested","closeRequested","canClose","dynamicPackageId","selectedDestination","roomDetails","rooms","ngClass"],["floatLabel","always",1,"restool-content-fields-promocode","promoCodeWrapper"],["type","text","matInput","","autocomplete","off","maxlength","50",3,"formControl","pattern","placeholder"],[1,"usepoints-icon"],["icon","woh-text-logo"],[1,"points-icon"],["type","checkbox","name","points","autocomplete","off",1,"checkbox",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1){let r=ve();O(0,"div",null,0),_(2,"div",8),Fe(3,R3,4,2,"div",9),_(4,"h2",10),L(5),b(),_(6,"div",11)(7,"div",12)(8,"mat-button-toggle-group",13),Kt("ngModelChange",function(a){return M(r),Lt(i.dynamicPackageId,a)||(i.dynamicPackageId=a),k(a)}),q(9,O3,3,2,"mat-button-toggle",14),q(10,N3,3,2,"mat-button-toggle",14),b()(),q(11,F3,1,1,"restool-add-extras",15),b(),_(12,"form",16),I("ngSubmit",function(){return M(r),k(i.submit())})("keydown.enter",function(a){return M(r),k(i.hijackKeyboard(a))}),q(13,B3,14,9,"div",17),_(14,"div",18)(15,"mat-form-field",19,1),O(17,"deal-icon",20),_(18,"mat-label",21),L(19),b(),O(20,"input",22),_(21,"button",23),I("click",function(a){return M(r),i.closeAutoCompletes(),i.showDestinationsDialog=!i.showDestinationsDialog,k(a.stopPropagation())}),L(22),b(),q(23,j3,2,1,"mat-error"),b(),q(24,z3,1,4,null,24),b(),_(25,"div",25)(26,"mat-form-field",26,2),O(28,"deal-icon",27),_(29,"mat-label",21),L(30),b(),_(31,"button",28,3),I("click",function(){return M(r),i.closeAutoCompletes(),k(i.showDynamicDatesDialog=!i.showDynamicDatesDialog)}),L(33),b(),O(34,"input",29),q(35,U3,2,1,"mat-error"),b(),q(36,G3,1,4,null,24),b(),_(37,"div",30)(38,"div",31,4)(40,"button",32),I("click",function(){return M(r),i.closeAutoCompletes(),k(i.showTravellerDialog=!i.showTravellerDialog)}),_(41,"div",33),q(42,W3,5,2,"div",34),_(43,"div",35)(44,"div",36),O(45,"deal-icon",37),_(46,"span",38),L(47),b()(),_(48,"div",36),O(49,"deal-icon",39),_(50,"span",40),L(51),b(),O(52,"deal-icon",41),b()()()(),q(53,Y3,1,4,null,24),b()(),q(54,Q3,6,7,"div",42),q(55,Z3,8,2,"div",43),_(56,"div",44)(57,"button",45),L(58),b()()()()}if(e&2){let r,o,a;p(2),C("ngClass",gn(36,I3,i.isSticky())),p(),C("ngIf",i.isSubmitting()),p(2),ie(i.resourceLabels().CompactBookingHeadline),p(2),C("ngClass",gn(38,T3,!(i.hotelOffered()&&i.airOffered()&&i.configuration().tt))),p(),Yt("ngModel",i.dynamicPackageId),p(),Y(i.hotelOffered()?9:-1),p(),Y(i.airOffered()&&i.configuration().tt?10:-1),p(),Y(i.hasPopup()?11:-1),p(2),Y(i.dynamicPackageId()=="P"&&i.configuration().so&&(((r=i.selectedDestination())==null?null:r.so)??!0)?13:-1),p(2),C("ngClass",gn(40,Oy,i.showDestinationsDialog)),p(4),ie(i.resourceLabels().DestDropdownText),p(),C("hidden",!0)("formControl",i.destinationControl),p(2),qe(" ",((o=i.selectedDestination())==null?null:o.t)||i.resourceLabels().DestPlaceholder," "),p(),Y(i.destinationControl.invalid?23:-1),p(),Y(i.isBrowser?24:-1),p(2),C("ngClass",gn(42,Oy,i.showDynamicDatesDialog)),p(4),ie(i.resourceLabels().TravelDatesText),p(),C("title",pn(i.travelDateControl.value))("ngClass",gn(44,S3,!i.travelDateControl.value)),p(2),qe(" ",i.travelDateControl.value||i.resourceLabels().DatepickerPlaceholder," "),p(),C("placeholder",pn(i.resourceLabels().DatepickerPlaceholder))("hidden",!0)("formControl",i.travelDateControl),p(),Y(i.travelDateControl.invalid?35:-1),p(),Y(i.isBrowser?36:-1),p(2),C("ngClass",gn(46,Oy,i.showTravellerDialog)),p(4),Y(i.hotelOffered()?42:-1),p(5),ie(i.rooms()),p(4),ie(i.computedAdults()+i.computedChildren()),p(2),Y(i.isBrowser?53:-1),p(),Y(i.configuration().pc?54:-1),p(),Y(i.dynamicPackageId()=="L"&&((a=i.selectedDestination())!=null&&a.ap||!i.selectedDestination()&&i.configuration().ap)?55:-1),p(3),qe(" ",i.resourceLabels().BookingButtonText," ")}},dependencies:[so,wi,Nb,uo,WT,js,cv,Hs,VT,gv,_v,bv,va,ba,df,Mc,un,Co,yo,ri,Rr,Ma,Yv,il,Hf,Bf,Eo,jn,Or,xM,Xv,Uf,qf,vn,Bn,Jt,Kf,Jf,th,rh],encapsulation:2})};var xe=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(xe||{}),Mi="*";function Sk(t,n=null){return{type:xe.Sequence,steps:t,options:n}}function Fy(t){return{type:xe.Style,styles:t,offset:null}}var Pr=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(n=0,e=0){this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},dl=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(n){this.players=n;let e=0,i=0,r=0,o=this.players.length;o==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==o&&this._onFinish()}),a.onDestroy(()=>{++i==o&&this._onDestroy()}),a.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){let e=n*this.totalTime;this.players.forEach(i=>{let r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){let n=this.players.reduce((e,i)=>e===null||i.totalTime>e.totalTime?i:e,null);return n!=null?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){let e=n=="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},Xc="!";function Mk(t){return new x(3e3,!1)}function X3(){return new x(3100,!1)}function J3(){return new x(3101,!1)}function eU(t){return new x(3001,!1)}function tU(t){return new x(3003,!1)}function nU(t){return new x(3004,!1)}function Ak(t,n){return new x(3005,!1)}function Rk(){return new x(3006,!1)}function Ok(){return new x(3007,!1)}function Nk(t,n){return new x(3008,!1)}function Fk(t){return new x(3002,!1)}function Pk(t,n,e,i,r){return new x(3010,!1)}function Lk(){return new x(3011,!1)}function Vk(){return new x(3012,!1)}function Bk(){return new x(3200,!1)}function jk(){return new x(3202,!1)}function Hk(){return new x(3013,!1)}function zk(t){return new x(3014,!1)}function Uk(t){return new x(3015,!1)}function $k(t){return new x(3016,!1)}function Gk(t,n){return new x(3404,!1)}function iU(t){return new x(3502,!1)}function Wk(t){return new x(3503,!1)}function qk(){return new x(3300,!1)}function Yk(t){return new x(3504,!1)}function Kk(t){return new x(3301,!1)}function Qk(t,n){return new x(3302,!1)}function Zk(t){return new x(3303,!1)}function Xk(t,n){return new x(3400,!1)}function Jk(t){return new x(3401,!1)}function eA(t){return new x(3402,!1)}function tA(t,n){return new x(3505,!1)}function Lr(t){switch(t.length){case 0:return new Pr;case 1:return t[0];default:return new dl(t)}}function By(t,n,e=new Map,i=new Map){let r=[],o=[],a=-1,s=null;if(n.forEach(l=>{let c=l.get("offset"),u=c==a,m=u&&s||new Map;l.forEach((h,f)=>{let g=f,v=h;if(f!=="offset")switch(g=t.normalizePropertyName(g,r),v){case Xc:v=e.get(f);break;case Mi:v=i.get(f);break;default:v=t.normalizeStyleValue(f,g,v,r);break}m.set(g,v)}),u||o.push(m),s=m,a=c}),r.length)throw iU(r);return o}function ah(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Py(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Py(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Py(e,"destroy",t)));break}}function Py(t,n,e){let i=e.totalTime,r=!!e.disabled,o=sh(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,i??t.totalTime,r),a=t._data;return a!=null&&(o._data=a),o}function sh(t,n,e,i,r="",o=0,a){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function yn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function jy(t){let n=t.indexOf(":"),e=t.substring(1,n),i=t.slice(n+1);return[e,i]}var rU=typeof document>"u"?null:document.documentElement;function lh(t){let n=t.parentNode||t.host||null;return n===rU?null:n}function oU(t){return t.substring(1,6)=="ebkit"}var Fa=null,kk=!1;function nA(t){Fa||(Fa=aU()||{},kk=Fa.style?"WebkitAppearance"in Fa.style:!1);let n=!0;return Fa.style&&!oU(t)&&(n=t in Fa.style,!n&&kk&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Fa.style)),n}function aU(){return typeof document<"u"?document.body:null}function Hy(t,n){for(;n;){if(n===t)return!0;n=lh(n)}return!1}function zy(t,n,e){if(e)return Array.from(t.querySelectorAll(n));let i=t.querySelector(n);return i?[i]:[]}var sU=1e3,Uy="{{",lU="}}",$y="ng-enter",ch="ng-leave",Jc="ng-trigger",ed=".ng-trigger",Gy="ng-animating",dh=".ng-animating";function sr(t){if(typeof t=="number")return t;let n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Ly(parseFloat(n[1]),n[2])}function Ly(t,n){switch(n){case"s":return t*sU;default:return t}}function td(t,n,e){return t.hasOwnProperty("duration")?t:dU(t,n,e)}var cU=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function dU(t,n,e){let i,r=0,o="";if(typeof t=="string"){let a=t.match(cU);if(a===null)return n.push(Mk(t)),{duration:0,delay:0,easing:""};i=Ly(parseFloat(a[1]),a[2]);let s=a[3];s!=null&&(r=Ly(parseFloat(s),a[4]));let l=a[5];l&&(o=l)}else i=t;if(!e){let a=!1,s=n.length;i<0&&(n.push(X3()),a=!0),r<0&&(n.push(J3()),a=!0),a&&n.splice(s,0,Mk(t))}return{duration:i,delay:r,easing:o}}function iA(t){return t.length?t[0]instanceof Map?t:t.map(n=>new Map(Object.entries(n))):[]}function ki(t,n,e){n.forEach((i,r)=>{let o=uh(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i})}function Mo(t,n){n.forEach((e,i)=>{let r=uh(i);t.style[r]=""})}function ul(t){return Array.isArray(t)?t.length==1?t[0]:Sk(t):t}function rA(t,n,e){let i=n.params||{},r=Wy(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(eU(o))})}var Vy=new RegExp(`${Uy}\\s*(.+?)\\s*${lU}`,"g");function Wy(t){let n=[];if(typeof t=="string"){let e;for(;e=Vy.exec(t);)n.push(e[1]);Vy.lastIndex=0}return n}function ml(t,n,e){let i=`${t}`,r=i.replace(Vy,(o,a)=>{let s=n[a];return s==null&&(e.push(tU(a)),s=""),s.toString()});return r==i?t:r}var uU=/-+([a-z0-9])/g;function uh(t){return t.replace(uU,(...n)=>n[1].toUpperCase())}function oA(t,n){return t===0||n===0}function aA(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,a)=>{i.has(a)||r.push(a),i.set(a,o)}),r.length)for(let o=1;oa.set(s,mh(t,s)))}}return n}function Dn(t,n,e){switch(n.type){case xe.Trigger:return t.visitTrigger(n,e);case xe.State:return t.visitState(n,e);case xe.Transition:return t.visitTransition(n,e);case xe.Sequence:return t.visitSequence(n,e);case xe.Group:return t.visitGroup(n,e);case xe.Animate:return t.visitAnimate(n,e);case xe.Keyframes:return t.visitKeyframes(n,e);case xe.Style:return t.visitStyle(n,e);case xe.Reference:return t.visitReference(n,e);case xe.AnimateChild:return t.visitAnimateChild(n,e);case xe.AnimateRef:return t.visitAnimateRef(n,e);case xe.Query:return t.visitQuery(n,e);case xe.Stagger:return t.visitStagger(n,e);default:throw nU(n.type)}}function mh(t,n){return window.getComputedStyle(t)[n]}var c0=(()=>{class t{validateStyleProperty(e){return nA(e)}containsElement(e,i){return Hy(e,i)}getParentElement(e){return lh(e)}query(e,i,r){return zy(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,a,s=[],l){return new Pr(r,o)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})(),La=class{static NOOP=new c0},Va=class{};var mU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),_h=class extends Va{normalizePropertyName(n,e){return uh(n)}normalizeStyleValue(n,e,i,r){let o="",a=i.toString().trim();if(mU.has(e)&&i!==0&&i!=="0")if(typeof i=="number")o="px";else{let s=i.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&s[1].length==0&&r.push(Ak(n,i))}return a+o}};var bh="*";function fU(t,n){let e=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(i=>hU(i,e,n)):e.push(t),e}function hU(t,n,e){if(t[0]==":"){let l=pU(t,e);if(typeof l=="function"){n.push(l);return}t=l}let i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(Uk(t)),n;let r=i[1],o=i[2],a=i[3];n.push(sA(r,a));let s=r==bh&&a==bh;o[0]=="<"&&!s&&n.push(sA(a,r))}function pU(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}var fh=new Set(["true","1"]),hh=new Set(["false","0"]);function sA(t,n){let e=fh.has(t)||hh.has(t),i=fh.has(n)||hh.has(n);return(r,o)=>{let a=t==bh||t==r,s=n==bh||n==o;return!a&&e&&typeof r=="boolean"&&(a=r?fh.has(t):hh.has(t)),!s&&i&&typeof o=="boolean"&&(s=o?fh.has(n):hh.has(n)),a&&s}}var _A=":self",gU=new RegExp(`s*${_A}s*,?`,"g");function bA(t,n,e,i){return new Xy(t).build(n,e,i)}var lA="",Xy=class{_driver;constructor(n){this._driver=n}build(n,e,i){let r=new Jy(e);return this._resetContextStyleTimingState(r),Dn(this,ul(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector=lA,n.collectedStyles=new Map,n.collectedStyles.set(lA,new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0,o=[],a=[];return n.name.charAt(0)=="@"&&e.errors.push(Rk()),n.definitions.forEach(s=>{if(this._resetContextStyleTimingState(e),s.type==xe.State){let l=s,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(s.type==xe.Transition){let l=this.visitTransition(s,e);i+=l.queryCount,r+=l.depCount,a.push(l)}else e.errors.push(Ok())}),{type:xe.Trigger,name:n.name,states:o,transitions:a,queryCount:i,depCount:r,options:null}}visitState(n,e){let i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){let o=new Set,a=r||{};i.styles.forEach(s=>{s instanceof Map&&s.forEach(l=>{Wy(l).forEach(c=>{a.hasOwnProperty(c)||o.add(c)})})}),o.size&&e.errors.push(Nk(n.name,[...o.values()]))}return{type:xe.State,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;let i=Dn(this,ul(n.animation),e),r=fU(n.expr,e.errors);return{type:xe.Transition,matchers:r,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Pa(n.options)}}visitSequence(n,e){return{type:xe.Sequence,steps:n.steps.map(i=>Dn(this,i,e)),options:Pa(n.options)}}visitGroup(n,e){let i=e.currentTime,r=0,o=n.steps.map(a=>{e.currentTime=i;let s=Dn(this,a,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:xe.Group,steps:o,options:Pa(n.options)}}visitAnimate(n,e){let i=yU(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Fy({});if(o.type==xe.Keyframes)r=this.visitKeyframes(o,e);else{let a=n.styles,s=!1;if(!a){s=!0;let c={};i.easing&&(c.easing=i.easing),a=Fy(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(a,e);l.isEmptyStep=s,r=l}return e.currentAnimateTimings=null,{type:xe.Animate,timings:i,style:r,options:null}}visitStyle(n,e){let i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){let i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let s of r)typeof s=="string"?s===Mi?i.push(s):e.errors.push(Fk(s)):i.push(new Map(Object.entries(s)));let o=!1,a=null;return i.forEach(s=>{if(s instanceof Map&&(s.has("easing")&&(a=s.get("easing"),s.delete("easing")),!o)){for(let l of s.values())if(l.toString().indexOf(Uy)>=0){o=!0;break}}}),{type:xe.Style,styles:i,easing:a,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){let i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l),m=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(Pk(l,u.startTime,u.endTime,o,r)),m=!1),o=u.startTime),m&&c.set(l,{startTime:o,endTime:r}),e.options&&rA(s,e.options,e.errors)})})}visitKeyframes(n,e){let i={type:xe.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(Lk()),i;let r=1,o=0,a=[],s=!1,l=!1,c=0,u=n.steps.map(T=>{let ne=this._makeStyleAst(T,e),Re=ne.offset!=null?ne.offset:vU(ne.styles),De=0;return Re!=null&&(o++,De=ne.offset=Re),l=l||De<0||De>1,s=s||De0&&o{let Re=h>0?ne==f?1:h*ne:a[ne],De=Re*E;e.currentTime=g+v.delay+De,v.duration=De,this._validateStyleAst(T,e),T.offset=Re,i.styles.push(T)}),i}visitReference(n,e){return{type:xe.Reference,animation:Dn(this,ul(n.animation),e),options:Pa(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:xe.AnimateChild,options:Pa(n.options)}}visitAnimateRef(n,e){return{type:xe.AnimateRef,animation:this.visitReference(n.animation,e),options:Pa(n.options)}}visitQuery(n,e){let i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;let[o,a]=_U(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yn(e.collectedStyles,e.currentQuerySelector,new Map);let s=Dn(this,ul(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:xe.Query,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:a,animation:s,originalSelector:n.selector,options:Pa(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(Hk());let i=n.timings==="full"?{duration:0,delay:0,easing:"full"}:td(n.timings,e.errors,!0);return{type:xe.Stagger,animation:Dn(this,ul(n.animation),e),timings:i,options:null}}};function _U(t){let n=!!t.split(/\s*,\s*/).find(e=>e==_A);return n&&(t=t.replace(gU,"")),t=t.replace(/@\*/g,ed).replace(/@\w+/g,e=>ed+"-"+e.slice(1)).replace(/:animating/g,dh),[t,n]}function bU(t){return t?V({},t):null}var Jy=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(n){this.errors=n}};function vU(t){if(typeof t=="string")return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){let i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}function yU(t,n){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let o=td(t,n).duration;return qy(o,0,"")}let e=t;if(e.split(/\s+/).some(o=>o.charAt(0)=="{"&&o.charAt(1)=="{")){let o=qy(0,0,"");return o.dynamic=!0,o.strValue=e,o}let r=td(e,n);return qy(r.duration,r.delay,r.easing)}function Pa(t){return t?(t=V({},t),t.params&&(t.params=bU(t.params))):t={},t}function qy(t,n,e){return{duration:t,delay:n,easing:e}}function d0(t,n,e,i,r,o,a=null,s=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var id=class{_map=new Map;get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}},DU=1,CU=":enter",wU=new RegExp(CU,"g"),EU=":leave",xU=new RegExp(EU,"g");function vA(t,n,e,i,r,o=new Map,a=new Map,s,l,c=[]){return new e0().buildKeyframes(t,n,e,i,r,o,a,s,l,c)}var e0=class{buildKeyframes(n,e,i,r,o,a,s,l,c,u=[]){c=c||new id;let m=new t0(n,e,c,r,o,u,[]);m.options=l;let h=l.delay?sr(l.delay):0;m.currentTimeline.delayNextStep(h),m.currentTimeline.setStyles([a],null,m.errors,l),Dn(this,i,m);let f=m.timelines.filter(g=>g.containsAnimation());if(f.length&&s.size){let g;for(let v=f.length-1;v>=0;v--){let E=f[v];if(E.element===e){g=E;break}}g&&!g.allowOnlyTimelineStyles()&&g.setStyles([s],null,m.errors,l)}return f.length?f.map(g=>g.buildKeyframes()):[d0(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){let i=e.subInstructions.get(e.element);if(i){let r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,a=this._visitSubInstructions(i,r,r.options);o!=a&&e.transformIntoNewTimeline(a)}e.previousNode=n}visitAnimateRef(n,e){let i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(let r of n){let o=r?.delay;if(o){let a=typeof o=="number"?o:sr(ml(o,r?.params??{},e.errors));i.delayNextStep(a)}}}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime,a=i.duration!=null?sr(i.duration):null,s=i.delay!=null?sr(i.delay):null;return a!==0&&n.forEach(l=>{let c=e.appendInstructionToTimeline(l,a,s);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),Dn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){let i=e.subContextCount,r=e,o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),o.delay!=null)){r.previousNode.type==xe.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=vh);let a=sr(o.delay);r.delayNextStep(a)}n.steps.length&&(n.steps.forEach(a=>Dn(this,a,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){let i=[],r=e.currentTimeline.currentTime,o=n.options&&n.options.delay?sr(n.options.delay):0;n.steps.forEach(a=>{let s=e.createSubContext(n.options);o&&s.delayNextStep(o),Dn(this,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(a=>e.currentTimeline.mergeTimelineCollectedStyles(a)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){let i=n.strValue,r=e.params?ml(i,e.params,e.errors):i;return td(r,e.errors)}else return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){let i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());let o=n.style;o.type==xe.Keyframes?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){let i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();let o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){let i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,s=e.createSubContext().currentTimeline;s.easing=i.easing,n.styles.forEach(l=>{let c=l.offset||0;s.forwardTime(c*o),s.setStyles(l.styles,l.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){let i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?sr(r.delay):0;o&&(e.previousNode.type===xe.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vh);let a=i,s=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;let l=null;s.forEach((c,u)=>{e.currentQueryIndex=u;let m=e.createSubContext(n.options,c);o&&m.delayNextStep(o),c===e.element&&(l=m.currentTimeline),Dn(this,n.animation,m),m.currentTimeline.applyStylesToKeyframe();let h=m.currentTimeline.currentTime;a=Math.max(a,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){let i=e.parentContext,r=e.currentTimeline,o=n.timings,a=Math.abs(o.duration),s=a*(e.currentQueryTotal-1),l=a*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=s-l;break;case"full":l=i.currentStaggerTime;break}let u=e.currentTimeline;l&&u.delayNextStep(l);let m=u.currentTime;Dn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-m+(r.startTime-i.currentTimeline.startTime)}},vh={},t0=class t{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=vh;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(n,e,i,r,o,a,s,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=s,this.currentTimeline=l||new yh(this._driver,e,0),s.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;let i=n,r=this.options;i.duration!=null&&(r.duration=sr(i.duration)),i.delay!=null&&(r.delay=sr(i.delay));let o=i.params;if(o){let a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(s=>{(!e||!a.hasOwnProperty(s))&&(a[s]=ml(o[s],a,this.errors))})}}_copyOptions(){let n={};if(this.options){let e=this.options.params;if(e){let i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){let r=e||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=vh,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){let r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new n0(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,a){let s=[];if(r&&s.push(this.element),n.length>0){n=n.replace(wU,"."+this._enterClassName),n=n.replace(xU,"."+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,n,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),s.push(...c)}return!o&&s.length==0&&a.push(zk(e)),s}},yh=class t{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=DU,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Mi),this._currentKeyframe.set(e,Mi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);let o=r&&r.params||{},a=IU(n,this._globalTimelineStyles);for(let[s,l]of a){let c=ml(l,o,i);this._pendingStyles.set(s,c),this._localTimelineStyles.has(s)||this._backFill.set(s,this._globalTimelineStyles.get(s)??Mi),this._updateStyle(s,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{let r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let n=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((s,l)=>{let c=new Map([...this._backFill,...s]);c.forEach((u,m)=>{u===Xc?n.add(m):u===Mi&&e.add(m)}),i||c.set("offset",l/this.duration),r.push(c)});let o=[...n.values()],a=[...e.values()];if(i){let s=r[0],l=new Map(s);s.set("offset",0),l.set("offset",1),r=[s,l]}return d0(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}},n0=class extends yh{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(n,e,i,r,o,a,s=!1){super(n,e,a.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=s,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){let o=[],a=i+e,s=e/a,l=new Map(n[0]);l.set("offset",0),o.push(l);let c=new Map(n[0]);c.set("offset",cA(s)),o.push(c);let u=n.length-1;for(let m=1;m<=u;m++){let h=new Map(n[m]),f=h.get("offset"),g=e+f*i;h.set("offset",cA(g/a)),o.push(h)}i=a,e=0,r="",n=o}return d0(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}};function cA(t,n=3){let e=Math.pow(10,n-1);return Math.round(t*e)/e}function IU(t,n){let e=new Map,i;return t.forEach(r=>{if(r==="*"){i??=n.keys();for(let o of i)e.set(o,Mi)}else for(let[o,a]of r)e.set(o,a)}),e}function dA(t,n,e,i,r,o,a,s,l,c,u,m,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:m,errors:h}}var Yy={},Dh=class{_triggerName;ast;_stateStyles;constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return TU(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return n!==void 0&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,a,s,l,c,u){let m=[],h=this.ast.options&&this.ast.options.params||Yy,f=s&&s.params||Yy,g=this.buildStyles(i,f,m),v=l&&l.params||Yy,E=this.buildStyles(r,v,m),T=new Set,ne=new Map,Re=new Map,De=r==="void",xt={params:yA(v,h),delay:this.ast.options?.delay},bt=u?[]:vA(n,e,this.ast.animation,o,a,g,E,xt,c,m),rt=0;return bt.forEach(Mt=>{rt=Math.max(Mt.duration+Mt.delay,rt)}),m.length?dA(e,this._triggerName,i,r,De,g,E,[],[],ne,Re,rt,m):(bt.forEach(Mt=>{let Ri=Mt.element,Ba=yn(ne,Ri,new Set);Mt.preStyleProps.forEach(ko=>Ba.add(ko));let u0=yn(Re,Ri,new Set);Mt.postStyleProps.forEach(ko=>u0.add(ko)),Ri!==e&&T.add(Ri)}),dA(e,this._triggerName,i,r,De,g,E,bt,[...T.values()],ne,Re,rt))}};function TU(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}function yA(t,n){let e=V({},n);return Object.entries(t).forEach(([i,r])=>{r!=null&&(e[i]=r)}),e}var i0=class{styles;defaultParams;normalizer;constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){let i=new Map,r=yA(n,this.defaultParams);return this.styles.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,s)=>{a&&(a=ml(a,r,e));let l=this.normalizer.normalizePropertyName(s,e);a=this.normalizer.normalizeStyleValue(s,l,a,e),i.set(s,a)})}),i}};function SU(t,n,e){return new r0(t,n,e)}var r0=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,e.states.forEach(r=>{let o=r.options&&r.options.params||{};this.states.set(r.name,new i0(r.style,o,i))}),uA(this.states,"true","1"),uA(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new Dh(n,r,this.states))}),this.fallbackTransition=MU(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(a=>a.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}};function MU(t,n,e){let i=[(a,s)=>!0],r={type:xe.Sequence,steps:[],options:null},o={type:xe.Transition,animation:r,matchers:i,options:null,queryCount:0,depCount:0};return new Dh(t,o,n)}function uA(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}var kU=new id,o0=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i}register(n,e){let i=[],r=[],o=bA(this._driver,e,i,r);if(i.length)throw Wk(i);this._animations.set(n,o)}_buildPlayer(n,e,i){let r=n.element,o=By(this._normalizer,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){let r=[],o=this._animations.get(n),a,s=new Map;if(o?(a=vA(this._driver,e,o,$y,ch,new Map,new Map,i,kU,r),a.forEach(u=>{let m=yn(s,u.element,new Map);u.postStyleProps.forEach(h=>m.set(h,null))})):(r.push(qk()),a=[]),r.length)throw Yk(r);s.forEach((u,m)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(m,f,Mi))})});let l=a.map(u=>{let m=s.get(u.element);return this._buildPlayer(u,new Map,m)}),c=Lr(l);return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){let e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){let e=this._playersById.get(n);if(!e)throw Kk(n);return e}listen(n,e,i,r){let o=sh(e,"","","");return ah(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if(i=="register"){this.register(n,r[0]);return}if(i=="create"){let a=r[0]||{};this.create(n,e,a);return}let o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n);break}}},mA="ng-animate-queued",AU=".ng-animate-queued",Ky="ng-animate-disabled",RU=".ng-animate-disabled",OU="ng-star-inserted",NU=".ng-star-inserted",FU=[],DA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ai="__ng_removed",rd=class{namespaceId;value;options;get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;let i=n&&n.hasOwnProperty("value"),r=i?n.value:n;if(this.value=VU(r),i){let o=n,{value:a}=o,s=ld(o,["value"]);this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){let e=n.params;if(e){let i=this.options.params;Object.keys(e).forEach(r=>{i[r]==null&&(i[r]=e[r])})}}},nd="void",Qy=new rd(nd),a0=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this._hostClassName="ng-tns-"+n,ai(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw Qk(i,e);if(i==null||i.length==0)throw Zk(e);if(!BU(i))throw Xk(i,e);let o=yn(this._elementListeners,n,[]),a={name:e,phase:i,callback:r};o.push(a);let s=yn(this._engine.statesByElement,n,new Map);return s.has(e)||(ai(n,Jc),ai(n,Jc+"-"+e),s.set(e,Qy)),()=>{this._engine.afterFlush(()=>{let l=o.indexOf(a);l>=0&&o.splice(l,1),this._triggers.has(e)||s.delete(e)})}}register(n,e){return this._triggers.has(n)?!1:(this._triggers.set(n,e),!0)}_getTrigger(n){let e=this._triggers.get(n);if(!e)throw Jk(n);return e}trigger(n,e,i,r=!0){let o=this._getTrigger(e),a=new od(this.id,e,n),s=this._engine.statesByElement.get(n);s||(ai(n,Jc),ai(n,Jc+"-"+e),this._engine.statesByElement.set(n,s=new Map));let l=s.get(e),c=new rd(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s.set(e,c),l||(l=Qy),!(c.value===nd)&&l.value===c.value){if(!zU(l.params,c.params)){let v=[],E=o.matchStyles(l.value,l.params,v),T=o.matchStyles(c.value,c.params,v);v.length?this._engine.reportError(v):this._engine.afterFlush(()=>{Mo(n,E),ki(n,T)})}return}let h=yn(this._engine.playersByElement,n,[]);h.forEach(v=>{v.namespaceId==this.id&&v.triggerName==e&&v.queued&&v.destroy()});let f=o.matchTransition(l.value,c.value,n,c.params),g=!1;if(!f){if(!r)return;f=o.fallbackTransition,g=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:f,fromState:l,toState:c,player:a,isFallbackTransition:g}),g||(ai(n,mA),a.onStart(()=>{fl(n,mA)})),a.onDone(()=>{let v=this.players.indexOf(a);v>=0&&this.players.splice(v,1);let E=this._engine.playersByElement.get(n);if(E){let T=E.indexOf(a);T>=0&&E.splice(T,1)}}),this.players.push(a),h.push(a),a}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);let e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){let i=this._engine.driver.query(n,ed,!0);i.forEach(r=>{if(r[Ai])return;let o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(a=>a.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){let o=this._engine.statesByElement.get(n),a=new Map;if(o){let s=[];if(o.forEach((l,c)=>{if(a.set(c,l.value),this._triggers.has(c)){let u=this.trigger(n,c,nd,r);u&&s.push(u)}}),s.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,a),i&&Lr(s).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){let e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){let r=new Set;e.forEach(o=>{let a=o.name;if(r.has(a))return;r.add(a);let l=this._triggers.get(a).fallbackTransition,c=i.get(a)||Qy,u=new rd(nd),m=new od(this.id,a,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:a,transition:l,fromState:c,toState:u,player:m,isFallbackTransition:!0})})}}removeNode(n,e){let i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){let o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let a=n;for(;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{let o=n[Ai];(!o||o===DA)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){ai(n,this._hostClassName)}drainQueuedTransitions(n){let e=[];return this._queue.forEach(i=>{let r=i.player;if(r.destroyed)return;let o=i.element,a=this._elementListeners.get(o);a&&a.forEach(s=>{if(s.name==i.triggerName){let l=sh(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,ah(i.player,s.phase,l,s.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{let o=i.transition.ast.depCount,a=r.transition.ast.depCount;return o==0||a==0?o-a:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}},s0=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(n,e)=>{};_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i}get queuedPlayers(){let n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){let i=new a0(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){let i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let a=!1,s=this.driver.getParentElement(e);for(;s;){let l=r.get(s);if(l){let c=i.indexOf(l);i.splice(c+1,0,n),a=!0;break}s=this.driver.getParentElement(s)}a||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);let r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(e),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){let e=new Set,i=this.statesByElement.get(n);if(i){for(let r of i.values())if(r.namespaceId){let o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}}return e}trigger(n,e,i,r){if(ph(e)){let o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!ph(e))return;let o=e[Ai];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;let a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(n){let a=this._fetchNamespace(n);a&&a.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),ai(n,Ky)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),fl(n,Ky))}removeNode(n,e,i){if(ph(e)){let r=n?this._fetchNamespace(n):null;r?r.removeNode(e,i):this.markElementAsRemoved(n,e,!1,i);let o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Ai]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return ph(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,ed,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(n,dh,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){let e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){let e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Lr(this.players).onDone(()=>n());n()})}processLeaveNode(n){let e=n[Ai];if(e&&e.setForRemoval){if(n[Ai]=DA,e.namespaceId){this.destroyInnerAnimations(n);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(Ky)&&this.markElementAsDisabled(n,!1),this.driver.query(n,RU,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Lr(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw eA(n)}_flushAnimations(n,e){let i=new id,r=[],o=new Map,a=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(Z=>{u.add(Z);let re=this.driver.query(Z,AU,!0);for(let le=0;le{let le=$y+v++;g.set(re,le),Z.forEach(Oe=>ai(Oe,le))});let E=[],T=new Set,ne=new Set;for(let Z=0;ZT.add(Oe)):ne.add(re))}let Re=new Map,De=pA(h,Array.from(T));De.forEach((Z,re)=>{let le=ch+v++;Re.set(re,le),Z.forEach(Oe=>ai(Oe,le))}),n.push(()=>{f.forEach((Z,re)=>{let le=g.get(re);Z.forEach(Oe=>fl(Oe,le))}),De.forEach((Z,re)=>{let le=Re.get(re);Z.forEach(Oe=>fl(Oe,le))}),E.forEach(Z=>{this.processLeaveNode(Z)})});let xt=[],bt=[];for(let Z=this._namespaceList.length-1;Z>=0;Z--)this._namespaceList[Z].drainQueuedTransitions(e).forEach(le=>{let Oe=le.player,kt=le.element;if(xt.push(Oe),this.collectedEnterElements.length){let Ht=kt[Ai];if(Ht&&Ht.setForMove){if(Ht.previousTriggersValues&&Ht.previousTriggersValues.has(le.triggerName)){let Ao=Ht.previousTriggersValues.get(le.triggerName),zn=this.statesByElement.get(le.element);if(zn&&zn.has(le.triggerName)){let ad=zn.get(le.triggerName);ad.value=Ao,zn.set(le.triggerName,ad)}}Oe.destroy();return}}let Oi=!m||!this.driver.containsElement(m,kt),Cn=Re.get(kt),Vr=g.get(kt),ot=this._buildInstruction(le,i,Vr,Cn,Oi);if(ot.errors&&ot.errors.length){bt.push(ot);return}if(Oi){Oe.onStart(()=>Mo(kt,ot.fromStyles)),Oe.onDestroy(()=>ki(kt,ot.toStyles)),r.push(Oe);return}if(le.isFallbackTransition){Oe.onStart(()=>Mo(kt,ot.fromStyles)),Oe.onDestroy(()=>ki(kt,ot.toStyles)),r.push(Oe);return}let h0=[];ot.timelines.forEach(Ht=>{Ht.stretchStartingKeyframe=!0,this.disabledNodes.has(Ht.element)||h0.push(Ht)}),ot.timelines=h0,i.append(kt,ot.timelines);let SA={instruction:ot,player:Oe,element:kt};a.push(SA),ot.queriedElements.forEach(Ht=>yn(s,Ht,[]).push(Oe)),ot.preStyleProps.forEach((Ht,Ao)=>{if(Ht.size){let zn=l.get(Ao);zn||l.set(Ao,zn=new Set),Ht.forEach((ad,Sh)=>zn.add(Sh))}}),ot.postStyleProps.forEach((Ht,Ao)=>{let zn=c.get(Ao);zn||c.set(Ao,zn=new Set),Ht.forEach((ad,Sh)=>zn.add(Sh))})});if(bt.length){let Z=[];bt.forEach(re=>{Z.push(tA(re.triggerName,re.errors))}),xt.forEach(re=>re.destroy()),this.reportError(Z)}let rt=new Map,Mt=new Map;a.forEach(Z=>{let re=Z.element;i.has(re)&&(Mt.set(re,re),this._beforeAnimationBuild(Z.player.namespaceId,Z.instruction,rt))}),r.forEach(Z=>{let re=Z.element;this._getPreviousPlayers(re,!1,Z.namespaceId,Z.triggerName,null).forEach(Oe=>{yn(rt,re,[]).push(Oe),Oe.destroy()})});let Ri=E.filter(Z=>gA(Z,l,c)),Ba=new Map;hA(Ba,this.driver,ne,c,Mi).forEach(Z=>{gA(Z,l,c)&&Ri.push(Z)});let ko=new Map;f.forEach((Z,re)=>{hA(ko,this.driver,new Set(Z),l,Xc)}),Ri.forEach(Z=>{let re=Ba.get(Z),le=ko.get(Z);Ba.set(Z,new Map([...re?.entries()??[],...le?.entries()??[]]))});let Th=[],m0=[],f0={};a.forEach(Z=>{let{element:re,player:le,instruction:Oe}=Z;if(i.has(re)){if(u.has(re)){le.onDestroy(()=>ki(re,Oe.toStyles)),le.disabled=!0,le.overrideTotalTime(Oe.totalTime),r.push(le);return}let kt=f0;if(Mt.size>1){let Cn=re,Vr=[];for(;Cn=Cn.parentNode;){let ot=Mt.get(Cn);if(ot){kt=ot;break}Vr.push(Cn)}Vr.forEach(ot=>Mt.set(ot,kt))}let Oi=this._buildAnimation(le.namespaceId,Oe,rt,o,ko,Ba);if(le.setRealPlayer(Oi),kt===f0)Th.push(le);else{let Cn=this.playersByElement.get(kt);Cn&&Cn.length&&(le.parentPlayer=Lr(Cn)),r.push(le)}}else Mo(re,Oe.fromStyles),le.onDestroy(()=>ki(re,Oe.toStyles)),m0.push(le),u.has(re)&&r.push(le)}),m0.forEach(Z=>{let re=o.get(Z.element);if(re&&re.length){let le=Lr(re);Z.setRealPlayer(le)}}),r.forEach(Z=>{Z.parentPlayer?Z.syncPlayerEvents(Z.parentPlayer):Z.destroy()});for(let Z=0;Z!Oi.destroyed);kt.length?jU(this,re,kt):this.processLeaveNode(re)}return E.length=0,Th.forEach(Z=>{this.players.push(Z),Z.onDone(()=>{Z.destroy();let re=this.players.indexOf(Z);this.players.splice(re,1)}),Z.play()}),Th}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let a=[];if(e){let s=this.playersByQueriedElement.get(n);s&&(a=s)}else{let s=this.playersByElement.get(n);if(s){let l=!o||o==nd;s.forEach(c=>{c.queued||!l&&c.triggerName!=r||a.push(c)})}}return(i||r)&&(a=a.filter(s=>!(i&&i!=s.namespaceId||r&&r!=s.triggerName))),a}_beforeAnimationBuild(n,e,i){let r=e.triggerName,o=e.element,a=e.isRemovalTransition?void 0:n,s=e.isRemovalTransition?void 0:r;for(let l of e.timelines){let c=l.element,u=c!==o,m=yn(i,c,[]);this._getPreviousPlayers(c,u,a,s,e.toState).forEach(f=>{let g=f.getRealPlayer();g.beforeDestroy&&g.beforeDestroy(),f.destroy(),m.push(f)})}Mo(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,a){let s=e.triggerName,l=e.element,c=[],u=new Set,m=new Set,h=e.timelines.map(g=>{let v=g.element;u.add(v);let E=v[Ai];if(E&&E.removedBeforeQueried)return new Pr(g.duration,g.delay);let T=v!==l,ne=HU((i.get(v)||FU).map(rt=>rt.getRealPlayer())).filter(rt=>{let Mt=rt;return Mt.element?Mt.element===v:!1}),Re=o.get(v),De=a.get(v),xt=By(this._normalizer,g.keyframes,Re,De),bt=this._buildPlayer(g,xt,ne);if(g.subTimeline&&r&&m.add(v),T){let rt=new od(n,s,v);rt.setRealPlayer(bt),c.push(rt)}return bt});c.forEach(g=>{yn(this.playersByQueriedElement,g.element,[]).push(g),g.onDone(()=>LU(this.playersByQueriedElement,g.element,g))}),u.forEach(g=>ai(g,Gy));let f=Lr(h);return f.onDestroy(()=>{u.forEach(g=>fl(g,Gy)),ki(l,e.toStyles)}),m.forEach(g=>{yn(r,g,[]).push(f)}),f}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new Pr(n.duration,n.delay)}},od=class{namespaceId;triggerName;element;_player=new Pr;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>ah(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){let e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){let e=this._player;e.triggerCallback&&e.triggerCallback(n)}};function LU(t,n,e){let i=t.get(n);if(i){if(i.length){let r=i.indexOf(e);i.splice(r,1)}i.length==0&&t.delete(n)}return i}function VU(t){return t??null}function ph(t){return t&&t.nodeType===1}function BU(t){return t=="start"||t=="done"}function fA(t,n){let e=t.style.display;return t.style.display=n??"none",e}function hA(t,n,e,i,r){let o=[];e.forEach(l=>o.push(fA(l)));let a=[];i.forEach((l,c)=>{let u=new Map;l.forEach(m=>{let h=n.computeStyle(c,m,r);u.set(m,h),(!h||h.length==0)&&(c[Ai]=PU,a.push(c))}),t.set(c,u)});let s=0;return e.forEach(l=>fA(l,o[s++])),a}function pA(t,n){let e=new Map;if(t.forEach(s=>e.set(s,[])),n.length==0)return e;let i=1,r=new Set(n),o=new Map;function a(s){if(!s)return i;let l=o.get(s);if(l)return l;let c=s.parentNode;return e.has(c)?l=c:r.has(c)?l=i:l=a(c),o.set(s,l),l}return n.forEach(s=>{let l=a(s);l!==i&&e.get(l).push(s)}),e}function ai(t,n){t.classList?.add(n)}function fl(t,n){t.classList?.remove(n)}function jU(t,n,e){Lr(e).onDone(()=>t.processLeaveNode(n))}function HU(t){let n=[];return CA(t,n),n}function CA(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}var hl=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(n,e)=>{};constructor(n,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new s0(n.body,e,i),this._timelineEngine=new o0(n.body,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){let a=n+"-"+r,s=this._triggerCache[a];if(!s){let l=[],c=[],u=bA(this._driver,o,l,c);if(l.length)throw Gk(r,l);s=SU(r,u,this._normalizer),this._triggerCache[a]=s}this._transitionEngine.registerTrigger(e,r,s)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i){this._transitionEngine.removeNode(n,e,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if(i.charAt(0)=="@"){let[o,a]=jy(i),s=r;this._timelineEngine.command(o,e,a,s)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if(i.charAt(0)=="@"){let[a,s]=jy(i);return this._timelineEngine.listen(a,e,s,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}};function UU(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=Zy(n[0]),n.length>1&&(i=Zy(n[n.length-1]))):n instanceof Map&&(e=Zy(n)),e||i?new $U(t,e,i):null}var $U=(()=>{class t{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&ki(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ki(this._element,this._initialStyles),this._endStyles&&(ki(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Mo(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Mo(this._element,this._endStyles),this._endStyles=null),ki(this._element,this._initialStyles),this._state=3)}}return t})();function Zy(t){let n=null;return t.forEach((e,i)=>{GU(i)&&(n=n||new Map,n.set(i,e))}),n}function GU(t){return t==="display"||t==="position"}var Ch=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;let e=()=>this._onFinish();this.domPlayer.addEventListener("finish",e),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",e)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){let e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{r!=="offset"&&n.set(r,this._finished?i:mh(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){let e=n==="start"?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}},wh=class{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}containsElement(n,e){return Hy(n,e)}getParentElement(n){return lh(n)}query(n,e,i){return zy(n,e,i)}computeStyle(n,e,i){return mh(n,e)}animate(n,e,i,r,o,a=[]){let s=r==0?"both":"forwards",l={duration:i,delay:r,fill:s};o&&(l.easing=o);let c=new Map,u=a.filter(f=>f instanceof Ch);oA(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((g,v)=>c.set(v,g))});let m=iA(e).map(f=>new Map(f));m=aA(n,m,c);let h=UU(n,m);return new Ch(n,m,l,h)}};var gh="@",wA="@.disabled",Eh=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(n,e,i,r){this.namespaceId=n,this.delegate=e,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){e.charAt(0)==gh&&e==wA?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i,r){return this.delegate.listen(n,e,i,r)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}},l0=class extends Eh{factory;constructor(n,e,i,r,o){super(e,i,r,o),this.factory=n,this.namespaceId=e}setProperty(n,e,i){e.charAt(0)==gh?e.charAt(1)=="."&&e==wA?(i=i===void 0?!0:!!i,this.disableAnimations(n,i)):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i,r){if(e.charAt(0)==gh){let o=WU(n),a=e.slice(1),s="";return a.charAt(0)!=gh&&([a,s]=qU(a)),this.engine.listen(this.namespaceId,o,a,s,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(n,e,i,r)}};function WU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function qU(t){let n=t.indexOf("."),e=t.substring(0,n),i=t.slice(n+1);return[e,i]}var xh=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(n,e,i){this.delegate=n,this.engine=e,this._zone=i,e.onRemovalComplete=(r,o)=>{o?.removeChild(null,r)}}createRenderer(n,e){let r=this.delegate.createRenderer(n,e);if(!n||!e?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let m=()=>c.delete(r);u=new Eh("",r,this.engine,m),c.set(r,u)}return u}let o=e.id,a=e.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);let s=c=>{Array.isArray(c)?c.forEach(s):this.engine.registerTrigger(o,a,n,c.name,c)};return e.data.animation.forEach(s),new l0(this,a,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(n,e,i){if(n>=0&&ne(i));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(o=>{let[a,s]=o;a(s)}),this._animationCallbacksBuffer=[]})}),r.push([e,i])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(n){this.engine.flush(),this.delegate.componentReplaced?.(n)}};var KU=(()=>{class t extends hl{constructor(e,i,r){super(e,i,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(i){return new(i||t)(X(me),X(La),X(Va))};static \u0275prov=w({token:t,factory:t.\u0275fac})}return t})();function QU(){return new _h}function ZU(t,n,e){return new xh(t,n,e)}var EA=[{provide:Va,useFactory:QU},{provide:hl,useClass:KU},{provide:ct,useFactory:ZU,deps:[bc,hl,F]}],XU=[{provide:La,useClass:c0},{provide:Jr,useValue:"NoopAnimations"},...EA],Uhe=[{provide:La,useFactory:()=>new wh},{provide:Jr,useFactory:()=>"BrowserAnimations"},...EA];function xA(){return[...XU]}var IA=(t,n)=>{var e=d(ut);if(t.method.toUpperCase()=="POST"){let i=e.configuration.xst;i&&(t=t.clone({setHeaders:{RequestVerificationToken:i}}))}return n(t)};var TA={providers:[gT(pT()),db(),Xb(ev(),Jb([IA])),xA(),ut,Ft]};var Ih=class t{constructor(n,e,i,r){this.configurationService=n;this.resourceLabelService=e;this.dialogRef=i;this.data=r;this.resourceLabels.set(e.getLabels()),this.configuration.set(n.configuration??new Et)}resourceLabels=oe(new Xt);configuration=oe(new Et);closeModal(){this.dialogRef.close()}static \u0275fac=function(e){return new(e||t)(P(ut),P(Ft),P(So),P(ll))};static \u0275cmp=B({type:t,selectors:[["ng-component"]],inputs:{resourceLabels:[1,"resourceLabels"],configuration:[1,"configuration"]},outputs:{resourceLabels:"resourceLabelsChange",configuration:"configurationChange"},decls:4,vars:4,consts:[["aria-label","close",1,"close-button",3,"click"],["icon","close"],[3,"isModal","destination","departureDate","returnDate"]],template:function(e,i){e&1&&(_(0,"mat-dialog-actions")(1,"button",0),I("click",function(){return i.closeModal()}),O(2,"deal-icon",1),b()(),O(3,"restool-content",2)),e&2&&(p(3),C("isModal",!0)("destination",i.data.destination??"")("departureDate",i.data.departureDate)("returnDate",i.data.returnDate))},dependencies:[Jt],encapsulation:2})};$b(TA).then(t=>{let n=_T(oh,{injector:t.injector});customElements.define("restool-content",n),window.showBookingModal=function(r){t.injector.get(Fr).open(Ih,{data:{destination:r.destination,departureDate:r.departureDate,returnDate:r.returnDate},hasBackdrop:!0,autoFocus:!0,restoreFocus:!0,ariaModal:!0,panelClass:"booking-dialog",backdropClass:"booking-dialog-backdrop",ariaLabel:"Make a reservation"})};var e=["click","keypress"];document.querySelectorAll(".dynamicBookingButton").forEach(r=>{e.forEach(o=>{r.addEventListener(o,a=>{let s=a.target;if(!(a.type=="keypress"&&!(a.key=="Enter"||a.key==" "))){var l=s?.getAttribute("destination-id"),c=s?.getAttribute("departure-date"),u=s?.getAttribute("return-date");window.showBookingModal({destination:l,departureDate:c,returnDate:u})}})})})});